From 02797a87cc6629b6a2f9d828489b565d882bf818 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 11 Jun 2010 09:46:59 +0000 Subject: [PATCH] fix overflow --- src/hello/hello.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hello/hello.c b/src/hello/hello.c index 06142535b..abcc25c71 100644 --- a/src/hello/hello.c +++ b/src/hello/hello.c @@ -126,7 +126,7 @@ get_hello_address_size (const char *buf, size_t max, uint16_t * ralen) pos++; slen++; } - if ('\0' != *pos) + if (left == 0) { /* 0-termination not found */ GNUNET_break_op (0); -- 2.25.1