diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-07-13 15:44:09 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-07-13 15:44:09 +0200 |
commit | ef9722ec87c8a7ddb2d499c1e7863475d8790a94 (patch) | |
tree | c68d744c1109a075360e574efbe514eef55384a2 /tools | |
parent | e27b56f0b75d90d8086b4b7a69c36991485b1078 (diff) | |
download | rsyslog-ef9722ec87c8a7ddb2d499c1e7863475d8790a94.tar.gz rsyslog-ef9722ec87c8a7ddb2d499c1e7863475d8790a94.tar.xz rsyslog-ef9722ec87c8a7ddb2d499c1e7863475d8790a94.zip |
fix compile error in zip sender patch
... at least I was smart enough to remind me that I did not do
one test ;) That reminder was the compiler error. Now removed and
test done ;) [simple things tend to work, lol]
Diffstat (limited to 'tools')
-rw-r--r-- | tools/omfwd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/omfwd.c b/tools/omfwd.c index b6565dd1..eb023344 100644 --- a/tools/omfwd.c +++ b/tools/omfwd.c @@ -411,11 +411,11 @@ CODESTARTdoAction */ if(pData->compressionLevel && (l > MIN_SIZE_FOR_COMPRESS)) { Bytef *out; - teste das hier! uLongf destLen = iMaxLine + iMaxLine/100 +12; /* recommended value from zlib doc */ + uLongf destLen = iMaxLine + iMaxLine/100 +12; /* recommended value from zlib doc */ uLong srcLen = l; int ret; /* TODO: optimize malloc sequence? -- rgerhards, 2008-09-02 */ - CHKmalloc(out = (Bytef*) malloc(destlen)); + CHKmalloc(out = (Bytef*) malloc(destLen)); out[0] = 'z'; out[1] = '\0'; ret = compress2((Bytef*) out+1, &destLen, (Bytef*) psz, |