diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-10-15 09:58:07 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-10-15 09:58:07 +0200 |
commit | ddcb7d9af0ed6641303be6001270b77a2b70257f (patch) | |
tree | fd569c6496bb59d7232cf8f7a9ce17e93fb4e362 /runtime/stream.c | |
parent | c104eea4e5d0aeb4c87ee23fab8532530d5fe0e9 (diff) | |
download | rsyslog-ddcb7d9af0ed6641303be6001270b77a2b70257f.tar.gz rsyslog-ddcb7d9af0ed6641303be6001270b77a2b70257f.tar.bz2 rsyslog-ddcb7d9af0ed6641303be6001270b77a2b70257f.zip |
bugfix: imfile utilizes 32 bit to track offset
Most importantly, this problem can not experienced on recent Fedora
64 bit OS (which has 64 bit long's!)
Diffstat (limited to 'runtime/stream.c')
-rw-r--r-- | runtime/stream.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/stream.c b/runtime/stream.c index 1cff2da6..267e8687 100644 --- a/runtime/stream.c +++ b/runtime/stream.c @@ -779,7 +779,7 @@ rsRetVal strmSerialize(strm_t *pThis, strm_t *pStrm) { DEFiRet; int i; - long l; + int64 l; ISOBJ_TYPE_assert(pThis, strm); ISOBJ_TYPE_assert(pStrm, strm); @@ -801,8 +801,8 @@ rsRetVal strmSerialize(strm_t *pThis, strm_t *pStrm) i = pThis->tOpenMode; objSerializeSCALAR_VAR(pStrm, tOpenMode, INT, i); - l = (long) pThis->iCurrOffs; - objSerializeSCALAR_VAR(pStrm, iCurrOffs, LONG, l); + l = pThis->iCurrOffs; + objSerializeSCALAR_VAR(pStrm, iCurrOffs, INT64, l); CHKiRet(obj.EndSerialize(pStrm)); |