merge
This commit is contained in:
commit
5fd2e746e1
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ loadrom(char *file, int sflag)
|
|||
chr = malloc(nchr * CHRSZ);
|
||||
if(chr == nil)
|
||||
sysfatal("malloc: %r");
|
||||
if(readn(fd, chr, nchr * CHRSZ) < nchr * CHRSZ)
|
||||
if(readn(fd, chr, nchr * CHRSZ) < 1)
|
||||
sysfatal("read: %r");
|
||||
}else{
|
||||
nchr = 1;
|
||||
|
|
Loading…
Reference in a new issue