summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-10-02 11:21:40 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-10-02 11:21:40 +0200
commitf50511a348b5717c93494a1bab93a9d24ef65df3 (patch)
tree794651f3ce505d63df4b4b4759dd329cdab2cae9 /tests
parent6387d164bb0900cd01b7ff584fa17013bd0eb661 (diff)
downloadrsyslog-f50511a348b5717c93494a1bab93a9d24ef65df3.tar.gz
rsyslog-f50511a348b5717c93494a1bab93a9d24ef65df3.tar.xz
rsyslog-f50511a348b5717c93494a1bab93a9d24ef65df3.zip
cleanup
Diffstat (limited to 'tests')
-rw-r--r--tests/tcpflood.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tcpflood.c b/tests/tcpflood.c
index fbd67de9..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, 128, "%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",