git: 9front

Download patch

ref: 75af306c11ac41b425e46bb9643b76ddcd42e271
parent: 444cfef54f8afdcaac836f3c7c597546ba54595b
parent: 2095b278f094079c162248a6911c4b72783e799b
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Oct 17 17:30:10 EDT 2020

merge

--- a/sys/src/games/nes/nes.c
+++ b/sys/src/games/nes/nes.c
@@ -85,7 +85,7 @@
 		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;
--