Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Mehani <shtrom@ssji.net>2019-07-12 17:47:26 +1000
committerOlivier Mehani <shtrom@ssji.net>2019-07-12 17:47:26 +1000
commitc90a6d3b1ebc976ff0ccaa9380e9fab49afcb965 (patch)
tree2cf761ae680a0296cd3e84cbc29ade72ce8d3ee8
parent4d4bffe9305b10110d7a17ec175c59eb0bab70a5 (diff)
Reduce the amount of data read
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 57d3d5f..56c5c70 100644
--- a/main.c
+++ b/main.c
@@ -82,7 +82,7 @@ void print_delta(struct timeb *start, struct timeb *stop) {
int try_read(int sfd) {
- char buf[1024];
+ char buf[10];
ssize_t s;
while((s = read(sfd, buf, sizeof(buf))) < 0) {