ref: 2772e2cd2fe99d7ceb592e1c6bbad7ab414373e5
parent: 8a6541f79b4a08bcb76508849f8c659b08328ee4
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Jan 6 14:47:35 EST 2023
libauthsrv: deal with signed char in readcons()
--- a/libauthsrv/readcons.c
+++ b/libauthsrv/readcons.c
@@ -61,7 +61,7 @@
fprint(fdout, "\n%s: ", prompt);
while(p > s)
*p-- = 0;
- } else if(*p >= ' ')
+ } else if((*p & 0xff) >= ' ')
p++;
}
free(s);