Fix bug in user prompt where line was not flushed on negative response
This commit is contained in:
1 parent
a73e131f10
commit
fed7e7850b
1 file changed
+2
-1
+2
-1
@@ -624,9 +624,10 @@ FIO_openDstFile(FIO_prefs_t* const prefs,
|
||||
{ int ch = getchar();
|
||||
if ((ch!='Y') && (ch!='y')) {
|
||||
DISPLAY(" not overwritten \n");
|
||||
/* flush rest of input line */
|
||||
while ((ch!=EOF) && (ch!='\n')) ch = getchar();
|
||||
return NULL;
|
||||
}
|
||||
/* flush rest of input line */
|
||||
while ((ch!=EOF) && (ch!='\n')) ch = getchar();
|
||||
} }
|
||||
/* need to unlink */
|
||||
|
||||
Reference in new issue
Block a user