summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b9f3132)
raw | patch | inline | side by side (parent: b9f3132)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 27 Sep 2011 06:15:36 +0000 (06:15 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 27 Sep 2011 06:15:36 +0000 (06:15 +0000) |
fix for #316
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4@2202 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4@2202 a5681a0c-68f1-0310-ab6d-d61299d08faa
program/src/rrd_daemon.c | patch | blob | history |
index 78426e6b0073d928ad3430af57bc73e618266631..c09999a23a0ce03fe9064dd281eb2521df3957e6 100644 (file)
--- a/program/src/rrd_daemon.c
+++ b/program/src/rrd_daemon.c
/* save it for the journal later */
if (!JOURNAL_REPLAY(sock))
- strncpy(orig_buf, buffer, buffer_size);
+ strncpy(orig_buf, buffer, min(CMD_MAX,buffer_size));
status = buffer_get_field (&buffer, &buffer_size, &file);
if (status != 0)