projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbf325d
)
my: fix extract_string
author
Gabor X Toth
<*@tg-x.net>
Wed, 12 Oct 2016 19:11:01 +0000
(19:11 +0000)
committer
Gabor X Toth
<*@tg-x.net>
Wed, 12 Oct 2016 19:11:01 +0000
(19:11 +0000)
src/my/my_result_helper.c
patch
|
blob
|
history
diff --git
a/src/my/my_result_helper.c
b/src/my/my_result_helper.c
index 6c6a4e3b184efbe9738868eaa430d31671ed4539..f84550ced5a48758177df623f7f4704cee215859 100644
(file)
--- a/
src/my/my_result_helper.c
+++ b/
src/my/my_result_helper.c
@@
-554,7
+554,7
@@
post_extract_string (void * cls,
return GNUNET_SYSERR;
if (*results->is_null)
{
- rs->dst = NULL;
+
*(void **)
rs->dst = NULL;
return GNUNET_OK;
}
@@
-572,7
+572,8
@@
post_extract_string (void * cls,
GNUNET_free (buf);
return GNUNET_SYSERR;
}
- rs->dst = buf;
+ buf[size] = '\0';
+ *(void **) rs->dst = buf;
return GNUNET_OK;
}