shithub: 9pro

Download patch

ref: 55cb47750ad08a8bb9108c43c463b274793bf859
parent: 22ad91e21a2307085404932db094c6443ccf5000
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Thu Nov 26 10:46:30 EST 2020

quick fix

--- a/9gc.c
+++ b/9gc.c
@@ -238,7 +238,7 @@
 				b++;
 			if ((s = strchr(s, '\n')) == NULL)
 				s = (char*)&r->read.data[r->read.size];
-			*s = 0;
+			*s++ = 0;
 			if (strstr(b, "tlssrv") == NULL && (s = strchr(b, ' ')) != NULL) {
 				*s = 0;
 				close(a->f);