diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-10-17 21:30:10 +0200 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-10-17 21:30:10 +0200 |
| commit | 5fd2e746e1a2a00d2acbc0c3b1924b1ea22101e8 (patch) | |
| tree | 1646ba8ddf421d6cffca79a80742c3f436a10677 | |
| parent | 0b094303f3e30007fd9fccc3df81f44cf2c49003 (diff) | |
| parent | dfbf774bbba142ef4286c4e230475e5eedcf46d6 (diff) | |
| download | plan9front-5fd2e746e1a2a00d2acbc0c3b1924b1ea22101e8.tar.xz | |
merge
| -rw-r--r-- | sys/src/games/nes/nes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/games/nes/nes.c b/sys/src/games/nes/nes.c index 92c470f21..ba79c0bbc 100644 --- a/sys/src/games/nes/nes.c +++ b/sys/src/games/nes/nes.c @@ -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; |
