-fixed wrong assertion
authorSree Harsha Totakura <totakura@in.tum.de>
Wed, 18 Apr 2012 21:36:38 +0000 (21:36 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Wed, 18 Apr 2012 21:36:38 +0000 (21:36 +0000)
src/stream/test_stream_local.c

index 4f0f7629fe6660ee861a5a4d84715deec3ebe6c8..3bc7731b2bc5d4ef05b4a63e693f0a553e3f3553 100644 (file)
@@ -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))