diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-07-02 13:03:35 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-07-02 13:03:35 +0000 |
commit | 1e5226048707c38b6726c65073196ed53d17d8cd (patch) | |
tree | e26d111f95829b56465e183bb24a5885c1c30ed1 /src/statistics | |
parent | d61ad23ddcc47694924f539a0f469a24a19c7421 (diff) | |
download | gnunet-1e5226048707c38b6726c65073196ed53d17d8cd.tar.gz gnunet-1e5226048707c38b6726c65073196ed53d17d8cd.zip |
statistics api lying about message size
Diffstat (limited to 'src/statistics')
-rw-r--r-- | src/statistics/statistics_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, | |||
698 | subsystem = ""; | 698 | subsystem = ""; |
699 | if (name == NULL) | 699 | if (name == NULL) |
700 | name = ""; | 700 | name = ""; |
701 | slen1 = strlen (subsystem); | 701 | slen1 = strlen (subsystem) + 1; |
702 | slen2 = strlen (name); | 702 | slen2 = strlen (name) + 1; |
703 | GNUNET_assert (slen1 + slen2 + sizeof (struct GNUNET_MessageHeader) < | 703 | GNUNET_assert (slen1 + slen2 + sizeof (struct GNUNET_MessageHeader) < |
704 | GNUNET_SERVER_MAX_MESSAGE_SIZE); | 704 | GNUNET_SERVER_MAX_MESSAGE_SIZE); |
705 | ai = GNUNET_malloc (sizeof (struct GNUNET_STATISTICS_GetHandle)); | 705 | ai = GNUNET_malloc (sizeof (struct GNUNET_STATISTICS_GetHandle)); |