summaryrefslogtreecommitdiff
path: root/logger.c
diff options
context:
space:
mode:
authorErik Andersen2000-01-09 06:49:08 +0000
committerErik Andersen2000-01-09 06:49:08 +0000
commit9a9a261569df0c88038de48eb233890ca189e9c0 (patch)
tree4507d48158b954b221857c5b630a45c9a29a1480 /logger.c
parentac6e71f0c4150e9394b0a424e9d64750bcfacb85 (diff)
downloadbusybox-9a9a261569df0c88038de48eb233890ca189e9c0.zip
busybox-9a9a261569df0c88038de48eb233890ca189e9c0.tar.gz
Fix a logger bug.
-Erik
Diffstat (limited to 'logger.c')
-rw-r--r--logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/logger.c b/logger.c
index 35bbb66..7aada5d 100644
--- a/logger.c
+++ b/logger.c
@@ -186,7 +186,7 @@ extern int logger_main(int argc, char **argv)
if (toStdErrFlag==TRUE)
fprintf(stderr, "%s\n", buf);
- write( fd, buf, sizeof(buf));
+ write( fd, buf, strlen(buf)+1);
close(fd);
exit( TRUE);