[util] Fix incorrect check for result of Qgetc

Qgetc returns int, not char. Found via arm compile due to sign of bare
char (or lack thereof).
This commit is contained in:
Bill Currie 2023-03-25 16:44:16 +09:00
parent 56344e478d
commit ae9787228e

View file

@ -412,7 +412,7 @@ VISIBLE char *
Qgets (QFile *file, char *buf, int count)
{
char *ret = buf;
char c;
int c;
while (buf - ret < count - 1) {
c = Qgetc (file);