[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r1222 - GNUnet/src/applications/fs/ecrs
From: |
durner |
Subject: |
[GNUnet-SVN] r1222 - GNUnet/src/applications/fs/ecrs |
Date: |
Sun, 3 Jul 2005 05:34:42 -0700 (PDT) |
Author: durner
Date: 2005-07-03 05:34:39 -0700 (Sun, 03 Jul 2005)
New Revision: 1222
Modified:
GNUnet/src/applications/fs/ecrs/meta.c
Log:
Output buffer was too small
Modified: GNUnet/src/applications/fs/ecrs/meta.c
===================================================================
--- GNUnet/src/applications/fs/ecrs/meta.c 2005-07-03 10:40:41 UTC (rev
1221)
+++ GNUnet/src/applications/fs/ecrs/meta.c 2005-07-03 12:34:39 UTC (rev
1222)
@@ -321,8 +321,8 @@
char * tmp;
uLongf dlen;
- tmp = MALLOC(oldSize);
- dlen = oldSize;
+ dlen = oldSize * 1.001 + 13;
+ tmp = MALLOC(dlen);
if (Z_OK == compress(tmp, &dlen, data, oldSize)) {
if (dlen < oldSize) {
memcpy(data, tmp, dlen);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r1222 - GNUnet/src/applications/fs/ecrs,
durner <=