diff options
author | Milan Bartos <mbartos@redhat.com> | 2012-09-11 10:17:51 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-09-11 11:33:57 +0200 |
commit | 9c1c085ae498845d673bc5a621dbafde96736789 (patch) | |
tree | f5d0617f39cd4599805bbce11a921ab308d816a3 /plugins/imuxsock | |
parent | 95c8c69e4937163a1140340e4795ef6dbe3e72d2 (diff) | |
download | rsyslog-9c1c085ae498845d673bc5a621dbafde96736789.tar.gz rsyslog-9c1c085ae498845d673bc5a621dbafde96736789.tar.xz rsyslog-9c1c085ae498845d673bc5a621dbafde96736789.zip |
Fix length problem with _CMDLINE
modified: plugins/imuxsock/imuxsock.c
Diffstat (limited to 'plugins/imuxsock')
-rw-r--r-- | plugins/imuxsock/imuxsock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/imuxsock/imuxsock.c b/plugins/imuxsock/imuxsock.c index bb0e998f..d62e0466 100644 --- a/plugins/imuxsock/imuxsock.c +++ b/plugins/imuxsock/imuxsock.c @@ -850,9 +850,9 @@ SubmitMsg(uchar *pRcv, int lenRcv, lstn_t *pLstn, struct ucred *cred, struct tim toffs = toffs + 6 + lenProp; } if(getTrustedProp(cred, "cmdline", propBuf, sizeof(propBuf), &lenProp) == RS_RET_OK) { - memcpy(pmsgbuf+toffs, " _CMDLINE=", 9); - toffs = toffs + 9 + - copyescaped(pmsgbuf+toffs+9, propBuf, lenProp); + memcpy(pmsgbuf+toffs, " _CMDLINE=", 10); + toffs = toffs + 10 + + copyescaped(pmsgbuf+toffs+10, propBuf, lenProp); } /* finalize string */ |