[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r1365 - GNUnet/src/applications/fs/ecrs
From: |
grothoff |
Subject: |
[GNUnet-SVN] r1365 - GNUnet/src/applications/fs/ecrs |
Date: |
Sat, 9 Jul 2005 13:05:52 -0700 (PDT) |
Author: grothoff
Date: 2005-07-09 13:05:48 -0700 (Sat, 09 Jul 2005)
New Revision: 1365
Modified:
GNUnet/src/applications/fs/ecrs/meta.c
Log:
try
Modified: GNUnet/src/applications/fs/ecrs/meta.c
===================================================================
--- GNUnet/src/applications/fs/ecrs/meta.c 2005-07-09 19:25:12 UTC (rev
1364)
+++ GNUnet/src/applications/fs/ecrs/meta.c 2005-07-09 20:05:48 UTC (rev
1365)
@@ -322,7 +322,13 @@
char * tmp;
uLongf dlen;
+#ifdef compressBound
dlen = compressBound(oldSize);
+#else
+ dlen = oldSize + (oldSize / 100) + 20;
+ /* documentation says 100.1% oldSize + 12 bytes, but we
+ should be able to overshoot by more to be safe */
+#endif
tmp = MALLOC(dlen);
if (Z_OK == compress2(tmp, &dlen, data, oldSize, 9)) {
if (dlen < oldSize) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r1365 - GNUnet/src/applications/fs/ecrs,
grothoff <=