From c93c46f0c10e56b52d3c980e7082ab74f7003f66 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 13 Jan 2011 09:49:01 -0500 Subject: Warning cleanups. --- contrib/ashctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/ashctl.c') diff --git a/contrib/ashctl.c b/contrib/ashctl.c index 10975899..39a45dbb 100644 --- a/contrib/ashctl.c +++ b/contrib/ashctl.c @@ -68,8 +68,8 @@ u: fprintf(stderr, "usage: ashctl [raw|normal]\n" } sleep(1); - read(fd, buf, BUFSIZ-1); - buf[BUFSIZ-1] = '\0'; + i = read(fd, buf, BUFSIZ-1); + buf[i] = '\0'; if (strstr(buf, "$PASH") || strstr(buf, "$GP")) goto done; } -- cgit v1.2.1