summaryrefslogtreecommitdiffstats
path: root/runtime/datetime.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-09-24 09:48:38 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-09-24 09:48:38 +0200
commit37ba1df6e37b2d020001f390ccb2462ae04fc9c1 (patch)
tree0398e1fa17d3d0001f5cbaeef405844d25ceb7d6 /runtime/datetime.h
parent6d8df125979065640598bc9126258dc8645f748d (diff)
downloadrsyslog-37ba1df6e37b2d020001f390ccb2462ae04fc9c1.tar.gz
rsyslog-37ba1df6e37b2d020001f390ccb2462ae04fc9c1.tar.xz
rsyslog-37ba1df6e37b2d020001f390ccb2462ae04fc9c1.zip
bugfix: random data could be appended to message, possibly causing segfaults
Diffstat (limited to 'runtime/datetime.h')
-rw-r--r--runtime/datetime.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/datetime.h b/runtime/datetime.h
index efb0a0af..6377a4a4 100644
--- a/runtime/datetime.h
+++ b/runtime/datetime.h
@@ -36,8 +36,8 @@ typedef struct datetime_s {
/* interfaces */
BEGINinterface(datetime) /* name must also be changed in ENDinterface macro! */
void (*getCurrTime)(struct syslogTime *t, time_t *ttSeconds);
- rsRetVal (*ParseTIMESTAMP3339)(struct syslogTime *pTime, uchar** ppszTS);
- rsRetVal (*ParseTIMESTAMP3164)(struct syslogTime *pTime, uchar** pszTS);
+ rsRetVal (*ParseTIMESTAMP3339)(struct syslogTime *pTime, uchar** ppszTS, int *);
+ rsRetVal (*ParseTIMESTAMP3164)(struct syslogTime *pTime, uchar** pszTS, int *);
int (*formatTimestampToMySQL)(struct syslogTime *ts, char* pDst, size_t iLenDst);
int (*formatTimestampToPgSQL)(struct syslogTime *ts, char *pDst, size_t iLenDst);
int (*formatTimestamp3339)(struct syslogTime *ts, char* pBuf, size_t iLenBuf);