summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/lbplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/lbplay.c b/util/lbplay.c
index d4a57e0567..455befdb80 100644
--- a/util/lbplay.c
+++ b/util/lbplay.c
@@ -29,7 +29,7 @@ int main(int argc, char **argv)
perror("can't open version file");
goto out;
}
- ret = read(fd_v, buf, sizeof(buf));
+ ret = read(fd_v, buf, sizeof(buf) - 1);
if (ret <= 0) {
perror("can't read version");
close(fd_v);