From 1e5226048707c38b6726c65073196ed53d17d8cd Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Fri, 2 Jul 2010 13:03:35 +0000 Subject: statistics api lying about message size --- src/statistics/statistics_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/statistics/statistics_api.c') diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c index ed3d0bdb7..9de9f78fd 100644 --- a/src/statistics/statistics_api.c +++ b/src/statistics/statistics_api.c @@ -698,8 +698,8 @@ GNUNET_STATISTICS_get (struct GNUNET_STATISTICS_Handle *handle, subsystem = ""; if (name == NULL) name = ""; - slen1 = strlen (subsystem); - slen2 = strlen (name); + slen1 = strlen (subsystem) + 1; + slen2 = strlen (name) + 1; GNUNET_assert (slen1 + slen2 + sizeof (struct GNUNET_MessageHeader) < GNUNET_SERVER_MAX_MESSAGE_SIZE); ai = GNUNET_malloc (sizeof (struct GNUNET_STATISTICS_GetHandle)); -- cgit v1.2.3