From 537903a8dc4c3ecf2dfa382af0289ddf890adfc7 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 25 Jun 2010 21:08:55 +0000 Subject: fixing common off-by-one error with respect to maximum message size --- src/hello/hello.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hello') diff --git a/src/hello/hello.c b/src/hello/hello.c index abcc25c71..f41a601fd 100644 --- a/src/hello/hello.c +++ b/src/hello/hello.c @@ -167,7 +167,7 @@ GNUNET_HELLO_create (const struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded GNUNET_HELLO_GenerateAddressListCallback addrgen, void *addrgen_cls) { - char buffer[GNUNET_SERVER_MAX_MESSAGE_SIZE - 256 - + char buffer[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1 - 256 - sizeof (struct GNUNET_HELLO_Message)]; size_t max; size_t used; -- cgit v1.2.3