Minor fixes of parseImageHeader().

This commit is contained in:
Araki Ken authored and Tatsuya Kinoshita committed 2014-12-06 20:47:04 +09:00
1 parent e6856f2329
commit 08811e76fd
1 file changed
+2 -1
+2 -1
View File
@@ -670,6 +670,7 @@ parseImageHeader(char *path, u_int *width, u_int *height)
goto success;
}
}
goto error;
}
if (fread(buf + 3, 1, 5, fp) != 5) goto error;
@@ -684,10 +685,10 @@ parseImageHeader(char *path, u_int *width, u_int *height)
goto success;
}
}
goto error;
}
error:
fprintf(stderr,"%s\n",path);
fclose(fp);
return FALSE;