diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-22 18:19:10 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-22 18:19:10 +0200 |
commit | 221dc8a3224dcb59a7dd3158716a8d24cee71618 (patch) | |
tree | eec5380f444ac2f314d6a3a561a2f672b204d889 /runtime/datetime.c | |
parent | 8962c6b011f70bb7033d58641c2e4f3a73e7801a (diff) | |
download | rsyslog-221dc8a3224dcb59a7dd3158716a8d24cee71618.tar.gz rsyslog-221dc8a3224dcb59a7dd3158716a8d24cee71618.tar.xz rsyslog-221dc8a3224dcb59a7dd3158716a8d24cee71618.zip |
some more optimizations of the msg_t object (minor)
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 8f4bfa10..c0e145af 100644 --- a/runtime/datetime.c +++ b/runtime/datetime.c @@ -614,10 +614,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; @@ -626,7 +626,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) |