terminal-vga: st_size is signed now

This commit is contained in:
K. Lange 2018-10-12 18:03:06 +09:00
parent 4d5e977a24
commit 782794edc5

View File

@ -1237,7 +1237,7 @@ int main(int argc, char ** argv) {
/* Prune any keyboard input we got before the terminal started. */
struct stat s;
fstat(kfd, &s);
for (unsigned int i = 0; i < s.st_size; i++) {
for (int i = 0; i < s.st_size; i++) {
char tmp[1];
read(kfd, tmp, 1);
}