Fix CID 12427 & 12438

This commit is contained in:
Lorenz Meier
2015-01-20 14:14:23 +01:00
parent f1a53f5152
commit c04f870564
+3 -2
View File
@@ -3007,8 +3007,9 @@ monitor(void)
poll(fds, 1, 2000);
if (fds[0].revents == POLLIN) {
int c;
read(0, &c, 1);
/* control logic is to cancel with any key */
char c;
(void)read(0, &c, 1);
if (cancels-- == 0) {
printf("\033[2J\033[H"); /* move cursor home and clear screen */