ref: 6d2d7e0ea19a6a538a65e63000154198e6bb1493
parent: b83500663584cec5ddef38fec84115acc6b58955
author: cinap_lenrek <[email protected]>
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);