summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Tomaschewski <mt@suse.de>2012-10-17 11:55:34 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-10-17 14:47:27 +0200
commit51754401f72376ea5f1c5b74b9c1772ab6f7ae4f (patch)
tree79a57bff5fd8a3326d2315b63f8b811e44865c2b
parent49a5c0c3b9dbb91e3cdd97b2975a3e12c53fe73e (diff)
downloadrsyslog-51754401f72376ea5f1c5b74b9c1772ab6f7ae4f.tar.gz
rsyslog-51754401f72376ea5f1c5b74b9c1772ab6f7ae4f.tar.xz
rsyslog-51754401f72376ea5f1c5b74b9c1772ab6f7ae4f.zip
imklog: use memmove to remove kernel timestamp
-rw-r--r--plugins/imklog/bsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/imklog/bsd.c b/plugins/imklog/bsd.c
index 428d3cc2..bb45c97a 100644
--- a/plugins/imklog/bsd.c
+++ b/plugins/imklog/bsd.c
@@ -120,7 +120,7 @@ submitSyslog(int pri, uchar *buf)
/* we have a timestamp */
DBGPRINTF("kernel timestamp is %ld %ld\n", secs, nsecs);
bufsize= strlen((char*)buf);
- memcpy(buf+3, buf+i, bufsize - i + 1);
+ memmove(buf+3, buf+i, bufsize - i + 1);
clock_gettime(CLOCK_MONOTONIC, &monotonic);
clock_gettime(CLOCK_REALTIME, &realtime);