Fixed: chatclient sample compilation

This commit is contained in:
kervala 2010-08-18 18:14:58 +02:00
parent 480c88ea2e
commit b1854065cf

View file

@ -71,8 +71,8 @@ int getch()
peek_character = -1;
return ch;
}
if (read(STDIN_FILENO,&ch,1) != 1)
nlwarning("Can't read keyboard");
if (read(STDIN_FILENO,&ch,1) != 1) return ' ';
return ch;
}