Code

src/utils_parse_option.c: Null-terminate parsed quoted strings.
authorFlorian Forster <octo@noris.net>
Wed, 27 Aug 2008 15:38:40 +0000 (17:38 +0200)
committerFlorian Forster <octo@noris.net>
Wed, 27 Aug 2008 15:38:40 +0000 (17:38 +0200)
src/utils_parse_option.c

index 1531485f59f8906d4de217cdb44837aa47fdc59b..d94c1400919c5b4ce0ce8c2956cd91ce4c219c71 100644 (file)
@@ -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++;