Fix several bugs

This commit is contained in:
Nishi 2026-06-20 21:16:45 +09:00
commit ef900e7358
9 changed files with 24 additions and 15 deletions

View file

@ -69,6 +69,7 @@ FILE* Fopen(char* filename, char* type) {
sj4_strlcpy(fl->fname, filename, len);
fl->fp = fp;
fl->next = flist;
flist = fl;
return fp;
}

View file

@ -7,7 +7,7 @@ int main(int argc, char** argv) {
char b;
Sj4Context* ctx = alloccontext("dic.bin");
if(ctx == NULL){
if(ctx == NULL) {
fprintf(stderr, "Failed to create context\n");
return 1;
}