From aac35f0faf646c9e20d34aea54d43ed6efe194a1 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 27 Aug 2008 17:38:40 +0200 Subject: [PATCH] src/utils_parse_option.c: Null-terminate parsed quoted strings. --- src/utils_parse_option.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils_parse_option.c b/src/utils_parse_option.c index 1531485f..d94c1400 100644 --- 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++; -- 2.30.2