not stop by no more data

This commit is contained in:
2023-07-30 01:09:36 +03:00
parent 5c26c657d5
commit fdb193db25

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