Fix several bugs
This commit is contained in:
parent
8b001e8876
commit
ef900e7358
9 changed files with 24 additions and 15 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue