mirror of
https://github.com/cc65/cc65.git
synced 2025-02-07 04:31:38 +00:00
fixed error check
git-svn-id: svn://svn.cc65.org/cc65/trunk@1388 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
12741467f8
commit
b286cdf2b4
@ -104,7 +104,7 @@ int blocks,rest;
|
||||
Error("couldn't open %s:%s\n",argv[i],strerror(errno));
|
||||
bytes = fread(buffer,1,BLOODY_BIG_BUFFER,input);
|
||||
fclose(input);
|
||||
if (bytes<0)
|
||||
if (bytes==0)
|
||||
Error("couldn't read %s:%s\n",argv[i],strerror(errno));
|
||||
blocks = bytes / 254;
|
||||
rest = bytes % 254 + 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user