aboutsummaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-01-09 06:49:08 +0000
committerErik Andersen <andersen@codepoet.org>2000-01-09 06:49:08 +0000
commit9a9a261569df0c88038de48eb233890ca189e9c0 (patch)
tree4507d48158b954b221857c5b630a45c9a29a1480 /sysklogd
parentac6e71f0c4150e9394b0a424e9d64750bcfacb85 (diff)
downloadbusybox-9a9a261569df0c88038de48eb233890ca189e9c0.tar.gz
Fix a logger bug.
-Erik
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysklogd/logger.c b/sysklogd/logger.c
index 35bbb6692..7aada5dbc 100644
--- a/sysklogd/logger.c
+++ b/sysklogd/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);