Skip to content
Snippets Groups Projects
Commit 000206e6 authored by deuce's avatar deuce
Browse files

More error checking...

parent 2adf2311
No related branches found
No related tags found
No related merge requests found
......@@ -279,6 +279,11 @@ main(int argc, char **argv)
cprintf("Enter Name:");
Name = strdup(inputfield("", 30, 25, 10));
fp = fopen(Name, "rb");
if(fp==NULL) {
fprintf(stderr, "Cannot open %s\r\n",Name);
free(Name);
break;
}
fread(&TDFont.Sign, 1, 19, fp);
fclose(fp);
TDFont.Sign[19] = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment