projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45c3e7c
)
-fixed wrong assertion
author
Sree Harsha Totakura
<totakura@in.tum.de>
Wed, 18 Apr 2012 21:36:38 +0000
(21:36 +0000)
committer
Sree Harsha Totakura
<totakura@in.tum.de>
Wed, 18 Apr 2012 21:36:38 +0000
(21:36 +0000)
src/stream/test_stream_local.c
patch
|
blob
|
history
diff --git
a/src/stream/test_stream_local.c
b/src/stream/test_stream_local.c
index 4f0f7629fe6660ee861a5a4d84715deec3ebe6c8..3bc7731b2bc5d4ef05b4a63e693f0a553e3f3553 100644
(file)
--- 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))