diff options
Diffstat (limited to 'sysklogd')
-rw-r--r-- | sysklogd/logger.c | 2 |
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); |