Fix CID 1134504

This commit is contained in:
jvoisin 2014-05-01 00:54:48 +02:00
parent b55f80cd50
commit 8259710a24

View File

@ -218,7 +218,7 @@ R_API int r_cons_yesno(int def, const char *fmt, ...) {
va_end (ap);
fflush (stderr);
r_cons_set_raw (1);
read (0, &key, 1);
(void)read (0, &key, 1);
write (2, "\n", 1);
if (key == 'Y')
key = 'y';