diff options
Diffstat (limited to 'src/psycstore/psycstore_api.c')
-rw-r--r-- | src/psycstore/psycstore_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/psycstore/psycstore_api.c b/src/psycstore/psycstore_api.c index 40322662e..d79daa357 100644 --- a/src/psycstore/psycstore_api.c +++ b/src/psycstore/psycstore_api.c | |||
@@ -809,7 +809,7 @@ GNUNET_PSYCSTORE_message_get (struct GNUNET_PSYCSTORE_Handle *h, | |||
809 | if (NULL == method_prefix) | 809 | if (NULL == method_prefix) |
810 | method_prefix = ""; | 810 | method_prefix = ""; |
811 | uint16_t method_size = strnlen (method_prefix, | 811 | uint16_t method_size = strnlen (method_prefix, |
812 | GNUNET_SERVER_MAX_MESSAGE_SIZE | 812 | GNUNET_MAX_MESSAGE_SIZE |
813 | - sizeof (*req)) + 1; | 813 | - sizeof (*req)) + 1; |
814 | 814 | ||
815 | struct GNUNET_MQ_Envelope * | 815 | struct GNUNET_MQ_Envelope * |
@@ -875,7 +875,7 @@ GNUNET_PSYCSTORE_message_get_latest (struct GNUNET_PSYCSTORE_Handle *h, | |||
875 | if (NULL == method_prefix) | 875 | if (NULL == method_prefix) |
876 | method_prefix = ""; | 876 | method_prefix = ""; |
877 | uint16_t method_size = strnlen (method_prefix, | 877 | uint16_t method_size = strnlen (method_prefix, |
878 | GNUNET_SERVER_MAX_MESSAGE_SIZE | 878 | GNUNET_MAX_MESSAGE_SIZE |
879 | - sizeof (*req)) + 1; | 879 | - sizeof (*req)) + 1; |
880 | GNUNET_assert ('\0' == method_prefix[method_size - 1]); | 880 | GNUNET_assert ('\0' == method_prefix[method_size - 1]); |
881 | 881 | ||