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

View File

@ -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++;
}
}