summaryrefslogtreecommitdiffstats
path: root/tests/tcpflood.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-10-02 11:22:06 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-10-02 11:22:06 +0200
commitc7ccf7d322cd3a404f03609d74fb8184a7906707 (patch)
tree43e51dab738d8b921b063bb2ff0b03423b9c2714 /tests/tcpflood.c
parent8812ffd58b59724c1bf5c1cae8c37740524274c4 (diff)
parentf50511a348b5717c93494a1bab93a9d24ef65df3 (diff)
downloadrsyslog-c7ccf7d322cd3a404f03609d74fb8184a7906707.tar.gz
rsyslog-c7ccf7d322cd3a404f03609d74fb8184a7906707.tar.bz2
rsyslog-c7ccf7d322cd3a404f03609d74fb8184a7906707.zip
Merge branch 'v5-stable' into v6-stable
Diffstat (limited to 'tests/tcpflood.c')
-rw-r--r--tests/tcpflood.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tcpflood.c b/tests/tcpflood.c
index f3a89c77..8fd347f1 100644
--- a/tests/tcpflood.c
+++ b/tests/tcpflood.c
@@ -360,7 +360,7 @@ genMsg(char *buf, size_t maxBuf, int *pLenBuf, struct instdata *inst)
} while(!done); /* Attention: do..while()! */
} else if(MsgToSend == NULL) {
if(dynFileIDs > 0) {
- snprintf(dynFileIDBuf, maxBuf, "%d:", rand() % dynFileIDs);
+ snprintf(dynFileIDBuf, sizeof(dynFileIDBuf), "%d:", rand() % dynFileIDs);
}
if(extraDataLen == 0) {
*pLenBuf = snprintf(buf, maxBuf, "<%s>Mar 1 01:00:00 172.20.245.8 tag msgnum:%s%8.8d:%c",