aboutsummaryrefslogtreecommitdiff
path: root/libbb/read.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/read.c')
-rw-r--r--libbb/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/read.c b/libbb/read.c
index 50e0354ad..861828da1 100644
--- a/libbb/read.c
+++ b/libbb/read.c
@@ -88,7 +88,7 @@ char *reads(int fd, char *buffer, size_t size)
88 *p++ = '\0'; 88 *p++ = '\0';
89 // avoid incorrect (unsigned) widening 89 // avoid incorrect (unsigned) widening
90 offset = (off_t)(p-buffer) - (off_t)size; 90 offset = (off_t)(p-buffer) - (off_t)size;
91 // set fd position the right after the \n 91 // set fd position right after '\n'
92 if (offset && lseek(fd, offset, SEEK_CUR) == (off_t)-1) 92 if (offset && lseek(fd, offset, SEEK_CUR) == (off_t)-1)
93 return NULL; 93 return NULL;
94 } 94 }