aboutsummaryrefslogtreecommitdiff
path: root/src/my
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2016-10-12 19:11:01 +0000
committerGabor X Toth <*@tg-x.net>2016-10-12 19:11:01 +0000
commit62a97de058f92a9186efe117c204ddbb33a1b62e (patch)
tree11c55f380924593c36098511b547e8e7250a5e12 /src/my
parentdbf325d91f7890039f9e9659bd5525c930003070 (diff)
downloadgnunet-62a97de058f92a9186efe117c204ddbb33a1b62e.tar.gz
gnunet-62a97de058f92a9186efe117c204ddbb33a1b62e.zip
my: fix extract_string
Diffstat (limited to 'src/my')
-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