summaryrefslogtreecommitdiffstats
path: root/runtime/datetime.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-07-01 14:34:56 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-07-01 14:34:56 +0200
commit6322343eca1084b509386a94c1bcf2ca819f1220 (patch)
treecd873a34a4df087c3411de951c40a26f64f7d0ec /runtime/datetime.c
parente6aeb1b995d6629ff04fd0f6068be2e9ffe9ca42 (diff)
parent7bfa03bdc0b73647ffdbe4b73e5c1649af665fbf (diff)
downloadrsyslog-6322343eca1084b509386a94c1bcf2ca819f1220.tar.gz
rsyslog-6322343eca1084b509386a94c1bcf2ca819f1220.tar.xz
rsyslog-6322343eca1084b509386a94c1bcf2ca819f1220.zip
Merge branch 'master' into v5-devel
Diffstat (limited to 'runtime/datetime.c')
-rw-r--r--runtime/datetime.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/runtime/datetime.c b/runtime/datetime.c
index 5b9f5b6d..46488433 100644
--- a/runtime/datetime.c
+++ b/runtime/datetime.c
@@ -558,7 +558,6 @@ int formatTimestampToMySQL(struct syslogTime *ts, char* pBuf)
*/
assert(ts != NULL);
assert(pBuf != NULL);
- assert(iLenDst >= 15);
pBuf[0] = (ts->year / 1000) % 10 + '0';
pBuf[1] = (ts->year / 100) % 10 + '0';
@@ -584,7 +583,6 @@ int formatTimestampToPgSQL(struct syslogTime *ts, char *pBuf)
/* see note in formatTimestampToMySQL, applies here as well */
assert(ts != NULL);
assert(pBuf != NULL);
- assert(iLenDst >= 20);
pBuf[0] = (ts->year / 1000) % 10 + '0';
pBuf[1] = (ts->year / 100) % 10 + '0';
@@ -667,7 +665,6 @@ int formatTimestamp3339(struct syslogTime *ts, char* pBuf)
BEGINfunc
assert(ts != NULL);
assert(pBuf != NULL);
- assert(iLenBuf >= 33);
/* start with fixed parts */
/* year yyyy */
@@ -742,8 +739,6 @@ int formatTimestamp3164(struct syslogTime *ts, char* pBuf)
assert(ts != NULL);
assert(pBuf != NULL);
- assert(iLenBuf >= 16);
-
pBuf[0] = monthNames[(ts->month - 1)% 12][0];
pBuf[1] = monthNames[(ts->month - 1) % 12][1];
pBuf[2] = monthNames[(ts->month - 1) % 12][2];