From 292261f70ac67f057d7384b3621fd284558a1d18 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Wed, 18 Apr 2012 21:36:38 +0000 Subject: [PATCH] -fixed wrong assertion --- src/stream/test_stream_local.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)) -- 2.25.1