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:
committed by
waddlesplash
parent
194c483884
commit
319c399d61
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user