Use malloc/strdup instead of Alloc.

This commit is contained in:
Reece H. Dunn
2016-01-18 20:34:59 +00:00
parent 325014da42
commit bbd981efb8
5 changed files with 7 additions and 21 deletions
+4 -1
View File
@@ -231,7 +231,10 @@ int LoadDictionary(Translator *tr, const char *name, int no_error)
return 1;
}
tr->data_dictlist = Alloc(size);
if ((tr->data_dictlist = malloc(size)) == NULL) {
fclose(f);
return 3;
}
size = fread(tr->data_dictlist, 1, size, f);
fclose(f);