diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-22 18:19:38 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-22 18:19:38 +0200 |
commit | 55ead69efa550cbdff11656cb11c4a50439e7749 (patch) | |
tree | bcaa7ca5c2998d0bd363cda380d9aab8e3a2a6e4 /runtime/datetime.c | |
parent | 412b7d7df683df5205cf545f248a4fc55478e124 (diff) | |
parent | 221dc8a3224dcb59a7dd3158716a8d24cee71618 (diff) | |
download | rsyslog-55ead69efa550cbdff11656cb11c4a50439e7749.tar.gz rsyslog-55ead69efa550cbdff11656cb11c4a50439e7749.tar.xz rsyslog-55ead69efa550cbdff11656cb11c4a50439e7749.zip |
Merge branch 'omfile' into v5-devel
Diffstat (limited to 'runtime/datetime.c')
-rw-r--r-- | runtime/datetime.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/datetime.c b/runtime/datetime.c index a1ba164e..069cf55c 100644 --- a/runtime/datetime.c +++ b/runtime/datetime.c @@ -616,10 +616,10 @@ int formatTimestampToPgSQL(struct syslogTime *ts, char *pBuf, size_t iLenDst) * buffer that will receive the resulting string. The function * returns the size of the timestamp written in bytes (without * the string terminator). If 0 is returend, an error occured. - * The buffer must be at least 10 bytes large. + * The buffer must be at least 7 bytes large. * rgerhards, 2008-06-06 */ -int formatTimestampSecFrac(struct syslogTime *ts, char* pBuf, size_t iLenBuf) +int formatTimestampSecFrac(struct syslogTime *ts, char* pBuf) { int iBuf; int power; @@ -628,7 +628,6 @@ int formatTimestampSecFrac(struct syslogTime *ts, char* pBuf, size_t iLenBuf) assert(ts != NULL); assert(pBuf != NULL); - assert(iLenBuf >= 10); iBuf = 0; if(ts->secfracPrecision > 0) |