aboutsummaryrefslogtreecommitdiff
path: root/src/psyc/psyc_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/psyc/psyc_api.c')
-rw-r--r--src/psyc/psyc_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/psyc/psyc_api.c b/src/psyc/psyc_api.c
index c6544df3a..c93d8b383 100644
--- a/src/psyc/psyc_api.c
+++ b/src/psyc/psyc_api.c
@@ -1309,7 +1309,7 @@ channel_history_replay (struct GNUNET_PSYC_Channel *chn,
1309 1309
1310 GNUNET_assert (NULL != method_prefix); 1310 GNUNET_assert (NULL != method_prefix);
1311 uint16_t method_size = strnlen (method_prefix, 1311 uint16_t method_size = strnlen (method_prefix,
1312 GNUNET_SERVER_MAX_MESSAGE_SIZE 1312 GNUNET_MAX_MESSAGE_SIZE
1313 - sizeof (*req)) + 1; 1313 - sizeof (*req)) + 1;
1314 GNUNET_assert ('\0' == method_prefix[method_size - 1]); 1314 GNUNET_assert ('\0' == method_prefix[method_size - 1]);
1315 1315
@@ -1454,7 +1454,7 @@ channel_state_get (struct GNUNET_PSYC_Channel *chn,
1454 sr->op_id = GNUNET_OP_add (chn->op, op_recv_state_result, sr, NULL); 1454 sr->op_id = GNUNET_OP_add (chn->op, op_recv_state_result, sr, NULL);
1455 1455
1456 GNUNET_assert (NULL != name); 1456 GNUNET_assert (NULL != name);
1457 size_t name_size = strnlen (name, GNUNET_SERVER_MAX_MESSAGE_SIZE 1457 size_t name_size = strnlen (name, GNUNET_MAX_MESSAGE_SIZE
1458 - sizeof (*req)) + 1; 1458 - sizeof (*req)) + 1;
1459 struct GNUNET_MQ_Envelope * 1459 struct GNUNET_MQ_Envelope *
1460 env = GNUNET_MQ_msg_extra (req, name_size, type); 1460 env = GNUNET_MQ_msg_extra (req, name_size, type);