not stop by no more data
This commit is contained in:
parent
5c26c657d5
commit
fdb193db25
@ -84,14 +84,13 @@ int main(int argc, char **argv) {
|
||||
break;
|
||||
} else if (result == 0) {
|
||||
puts("No more data");
|
||||
|
||||
reading = false;
|
||||
break;
|
||||
} else {
|
||||
if (buffer[pos] == '\n') {
|
||||
buffer[pos] = '\0';
|
||||
break;
|
||||
} else
|
||||
}
|
||||
|
||||
pos++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user