PVS V739: EOF compared with a value of the char type.

Change-Id: Icfaff590359381fbdd3bbd7993dab92111da3ed1
Reviewed-on: https://review.haiku-os.org/c/1618
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Murai Takashi
2019-07-21 15:47:48 +00:00
committed by waddlesplash
parent 194c483884
commit 319c399d61
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ read_string(char* string, size_t bufferSize)
// TODO: setup timeout handler
// read everything until the next carriage return
char c;
int c;
while ((c = fgetc(stdin)) != EOF && c != '\r' && c != '\n') {
if (bufferSize > 1) {
string[0] = c;