diff options
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/lsscsi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/miscutils/lsscsi.c b/miscutils/lsscsi.c index b69ff1e..c86630e 100644 --- a/miscutils/lsscsi.c +++ b/miscutils/lsscsi.c @@ -37,9 +37,8 @@ static char *get_line(const char *filename, char *buf, unsigned *bufsize_p) if (sz < 0) sz = 0; buf[sz] = '\0'; - trim(buf); - sz = strlen(buf) + 1; + sz = (trim(buf) - buf) + 1; bufsize -= sz; buf += sz; buf[0] = '\0'; |