commit adc4031ecb1942d33f6bf889c8ddb14197863d2e
parent 8050537b40daab7a43e3da6fb2f01b3b873ebb77
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 8 Oct 2015 11:51:39 +0000
-fix ptr ar
Diffstat:
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/set/gnunet-service-set_union_strata_estimator.c b/src/set/gnunet-service-set_union_strata_estimator.c
@@ -33,7 +33,7 @@
* Should we try compressing the strata estimator? This will
* break compatibility with the 0.10.1-network.
*/
-#define FAIL_10_1_COMPATIBILTIY 0
+#define FAIL_10_1_COMPATIBILTIY 1
/**
@@ -48,6 +48,7 @@ strata_estimator_write (const struct StrataEstimator *se,
void *buf)
{
unsigned int i;
+ void *sbuf = buf;
size_t osize;
GNUNET_assert (NULL != se);
@@ -66,12 +67,12 @@ strata_estimator_write (const struct StrataEstimator *se,
size_t nsize;
if (GNUNET_YES ==
- GNUNET_try_compression (buf,
+ GNUNET_try_compression (sbuf,
osize,
&cbuf,
&nsize))
{
- memcpy (buf, cbuf, nsize);
+ memcpy (sbuf, cbuf, nsize);
osize = nsize;
GNUNET_free (cbuf);
}
diff --git a/src/set/set.conf.in b/src/set/set.conf.in
@@ -8,3 +8,5 @@ ACCEPT_FROM6 = ::1;
UNIXPATH = $GNUNET_RUNTIME_DIR/gnunet-service-set.sock
UNIX_MATCH_UID = YES
UNIX_MATCH_GID = YES
+
+PREFIX = valgrind