projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91f3557
)
src/utils_parse_option.c: Null-terminate parsed quoted strings.
author
Florian Forster
<octo@noris.net>
Wed, 27 Aug 2008 15:38:40 +0000
(17:38 +0200)
committer
Florian Forster
<octo@noris.net>
Wed, 27 Aug 2008 15:38:40 +0000
(17:38 +0200)
src/utils_parse_option.c
patch
|
blob
|
history
diff --git
a/src/utils_parse_option.c
b/src/utils_parse_option.c
index
1531485
..
d94c140
100644
(file)
--- a/
src/utils_parse_option.c
+++ b/
src/utils_parse_option.c
@@
-66,6
+66,9
@@
int parse_string (char **ret_buffer, char **ret_string)
/* No quote sign has been found */
if (*buffer == 0)
return (-1);
+
+ *dst = 0;
+ dst++;
*buffer = 0;
buffer++;