git: 9front

Download patch

ref: 74d310f882a51786f56f12fe285831bdd57190ea
parent: 5499eb0c3964418a36d708620730d33c9613859e
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Jan 6 14:46:43 EST 2023

libauthsrv: deal with signed char in readcons()

--- a/sys/src/libauthsrv/readcons.c
+++ b/sys/src/libauthsrv/readcons.c
@@ -66,7 +66,7 @@
 				fprint(fdout, "\n%s: ", prompt);
 			while(p > s)
 				*p-- = 0;
-		} else if(*p >= ' ')
+		} else if((*p & 0xff) >= ' ')
 			p++;
 	}
 	free(s);
--