not stop by no more data

This commit is contained in:
Alexander Popov 2023-07-30 01:09:36 +03:00
parent 5c26c657d5
commit fdb193db25
Signed by: iiiypuk
GPG Key ID: E47FE0AB36CD5ED6
1 changed files with 3 additions and 4 deletions

View File

@ -84,15 +84,14 @@ 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++;
}
pos++;
}
}