shithub: riscv

Download patch

ref: 63870e3ef4dc81d2449602bdf5caf4648e210c23
parent: abda59c7ecef03f9ab91568c8417f963fb7db894
author: spew <devnull@localhost>
date: Sun Feb 19 05:02:56 EST 2017

games/galaxy: fix crash on write to closed display

--- a/sys/src/games/galaxy/galaxy.c
+++ b/sys/src/games/galaxy/galaxy.c
@@ -464,7 +464,6 @@
 	for(;;) {
 		recv(realkc->c, &r);
 		if(r == Kdel) {
-			closedisplay(display);
 			threadexitsall(nil);
 		}
 		if(kc.c != nil)
@@ -471,7 +470,6 @@
 			send(kc.c, &r);
 		else switch(r) {
 		case 'q':
-			closedisplay(display);
 			threadexitsall(nil);
 			break;
 		case 's':