diff options
-rw-r--r-- | src/twister/twister_api.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/twister/twister_api.c b/src/twister/twister_api.c index 8b12113..330e6f1 100644 --- a/src/twister/twister_api.c +++ b/src/twister/twister_api.c @@ -323,7 +323,7 @@ TALER_TWISTER_flip_download struct TALER_TWISTER_Operation *op; struct GNUNET_MQ_Envelope *env; struct TWISTER_FlipPath *src; //FIXME 'src' right name? - size_t stralloc; + uint16_t stralloc; uint16_t size; op = GNUNET_new (struct TALER_TWISTER_Operation); @@ -335,6 +335,8 @@ TALER_TWISTER_flip_download op); stralloc = strlen (path) + 1; size = sizeof (*src) + stralloc; + + GNUNET_assert (size < UINT16_MAX); env = GNUNET_MQ_msg_extra (src, size, TWISTER_MESSAGE_TYPE_FLIP_PATH_DL); @@ -373,8 +375,8 @@ TALER_TWISTER_flip_upload struct TALER_TWISTER_Operation *op; struct GNUNET_MQ_Envelope *env; struct TWISTER_FlipPath *src; //FIXME 'src' right name? - size_t size; - size_t stralloc = strlen (path) + 1; + uint16_t size; + uint16_t stralloc = strlen (path) + 1; GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Will UL-flip: %s\n", |