[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r1236 - GNUnet/src/applications/fs/ecrs
From: |
grothoff |
Subject: |
[GNUnet-SVN] r1236 - GNUnet/src/applications/fs/ecrs |
Date: |
Sun, 3 Jul 2005 15:01:12 -0700 (PDT) |
Author: grothoff
Date: 2005-07-03 15:01:09 -0700 (Sun, 03 Jul 2005)
New Revision: 1236
Modified:
GNUnet/src/applications/fs/ecrs/meta.c
Log:
use compress bound
Modified: GNUnet/src/applications/fs/ecrs/meta.c
===================================================================
--- GNUnet/src/applications/fs/ecrs/meta.c 2005-07-03 20:37:39 UTC (rev
1235)
+++ GNUnet/src/applications/fs/ecrs/meta.c 2005-07-03 22:01:09 UTC (rev
1236)
@@ -322,7 +322,7 @@
char * tmp;
uLongf dlen;
- dlen = oldSize * 1.001 + 13;
+ dlen = compressBound(oldSize);
tmp = MALLOC(dlen);
if (Z_OK == compress(tmp, &dlen, data, oldSize)) {
if (dlen < oldSize) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r1236 - GNUnet/src/applications/fs/ecrs,
grothoff <=