Minor fixes of parseImageHeader().
This commit is contained in:
committed by
Tatsuya Kinoshita
parent
e6856f2329
commit
08811e76fd
3
image.c
3
image.c
@@ -670,6 +670,7 @@ parseImageHeader(char *path, u_int *width, u_int *height)
|
|||||||
goto success;
|
goto success;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fread(buf + 3, 1, 5, fp) != 5) 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 success;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
error:
|
error:
|
||||||
fprintf(stderr,"%s\n",path);
|
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user