From: Sree Harsha Totakura Date: Wed, 18 Apr 2012 21:36:38 +0000 (+0000) Subject: -fixed wrong assertion X-Git-Tag: initial-import-from-subversion-38251~13887 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=292261f70ac67f057d7384b3621fd284558a1d18;p=oweals%2Fgnunet.git -fixed wrong assertion --- diff --git a/src/stream/test_stream_local.c b/src/stream/test_stream_local.c index 4f0f7629f..3bc7731b2 100644 --- a/src/stream/test_stream_local.c +++ b/src/stream/test_stream_local.c @@ -288,9 +288,9 @@ input_processor (void *cls, GNUNET_assert (GNUNET_STREAM_OK == status); GNUNET_assert (size <= strlen (data)); - GNUNET_assert (strncmp ((const char *) data + peer->bytes_read, - (const char *) input_data, - size)); + GNUNET_assert (0 == strncmp ((const char *) data + peer->bytes_read, + (const char *) input_data, + size)); peer->bytes_read += size; if (peer->bytes_read < strlen (data))