aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modutils/modutils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/modutils/modutils.c b/modutils/modutils.c
index 2608182a1..cc718dbca 100644
--- a/modutils/modutils.c
+++ b/modutils/modutils.c
@@ -71,8 +71,7 @@ char* FAST_FUNC parse_cmdline_module_options(char **argv)
71 optlen = 0; 71 optlen = 0;
72 while (*++argv) { 72 while (*++argv) {
73 options = xrealloc(options, optlen + 2 + strlen(*argv) + 2); 73 options = xrealloc(options, optlen + 2 + strlen(*argv) + 2);
74 /* Spaces handled by "" pairs, but no way of escaping quotes */ 74 optlen += sprintf(options + optlen, "%s ", *argv);
75 optlen += sprintf(options + optlen, (strchr(*argv, ' ') ? "\"%s\" " : "%s "), *argv);
76 } 75 }
77 return options; 76 return options;
78} 77}