This commit is contained in:
cinap_lenrek 2020-10-17 21:30:10 +02:00
commit 5fd2e746e1

View file

@ -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;