summaryrefslogtreecommitdiffstats
path: root/plugins/omstdout/omstdout.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-10-02 10:38:32 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-10-02 10:38:32 +0200
commitc897ac6e6de3b430911cad71e7453d8b4b3c57bc (patch)
treefd6c2aab0ad78a499ee9053fdd8b17193d8967bd /plugins/omstdout/omstdout.c
parent78469b4c6a82887c70e2cac365af7a66051f8ba7 (diff)
parent4c8546fd6fb56d5439edb5a098c8f82bc8fc36aa (diff)
downloadrsyslog-c897ac6e6de3b430911cad71e7453d8b4b3c57bc.tar.gz
rsyslog-c897ac6e6de3b430911cad71e7453d8b4b3c57bc.tar.bz2
rsyslog-c897ac6e6de3b430911cad71e7453d8b4b3c57bc.zip
Merge branch 'v4-beta' into v4-devel
Conflicts: ChangeLog configure.ac doc/manual.html
Diffstat (limited to 'plugins/omstdout/omstdout.c')
-rw-r--r--plugins/omstdout/omstdout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/omstdout/omstdout.c b/plugins/omstdout/omstdout.c
index 584ae458..b3ec6287 100644
--- a/plugins/omstdout/omstdout.c
+++ b/plugins/omstdout/omstdout.c
@@ -124,7 +124,7 @@ CODESTARTdoAction
toWrite = (char*) ppString[0];
}
len = strlen(toWrite);
- write(1, toWrite, strlen(toWrite)); /* 1 is stdout! */
+ write(1, toWrite, len); /* 1 is stdout! */
if(pData->bEnsureLFEnding && toWrite[len-1] != '\n') {
write(1, "\n", 1); /* write missing LF */
}