aboutsummaryrefslogtreecommitdiff
path: root/src/my/my_result_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/my/my_result_helper.c')
-rw-r--r--src/my/my_result_helper.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/my/my_result_helper.c b/src/my/my_result_helper.c
index 6c6a4e3b1..f84550ced 100644
--- a/src/my/my_result_helper.c
+++ b/src/my/my_result_helper.c
@@ -554,7 +554,7 @@ post_extract_string (void * cls,
554 return GNUNET_SYSERR; 554 return GNUNET_SYSERR;
555 if (*results->is_null) 555 if (*results->is_null)
556 { 556 {
557 rs->dst = NULL; 557 *(void **) rs->dst = NULL;
558 return GNUNET_OK; 558 return GNUNET_OK;
559 } 559 }
560 560
@@ -572,7 +572,8 @@ post_extract_string (void * cls,
572 GNUNET_free (buf); 572 GNUNET_free (buf);
573 return GNUNET_SYSERR; 573 return GNUNET_SYSERR;
574 } 574 }
575 rs->dst = buf; 575 buf[size] = '\0';
576 *(void **) rs->dst = buf;
576 return GNUNET_OK; 577 return GNUNET_OK;
577} 578}
578 579