diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-10-31 02:04:28 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-10-31 02:04:28 +0000 |
commit | bb26db49b1b3a6cbc4b72c0cc6948432e3e77996 (patch) | |
tree | 33a7976a4b4f41839b3f4f175ac4b472daac2619 /modutils/modutils.c | |
parent | b9b344aa44ba6221edc8f09398325399049bf388 (diff) | |
download | busybox-w32-bb26db49b1b3a6cbc4b72c0cc6948432e3e77996.tar.gz busybox-w32-bb26db49b1b3a6cbc4b72c0cc6948432e3e77996.tar.bz2 busybox-w32-bb26db49b1b3a6cbc4b72c0cc6948432e3e77996.zip |
modprobe: fix a segfault when modprobe is called with no arguments at all
function old new delta
modprobe_main 559 535 -24
Diffstat (limited to 'modutils/modutils.c')
-rw-r--r-- | modutils/modutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modutils/modutils.c b/modutils/modutils.c index 18ea5374e..10b49c901 100644 --- a/modutils/modutils.c +++ b/modutils/modutils.c | |||
@@ -106,7 +106,7 @@ char * FAST_FUNC parse_cmdline_module_options(char **argv) | |||
106 | while (*++argv) { | 106 | while (*++argv) { |
107 | options = xrealloc(options, optlen + 2 + strlen(*argv) + 2); | 107 | options = xrealloc(options, optlen + 2 + strlen(*argv) + 2); |
108 | /* Spaces handled by "" pairs, but no way of escaping quotes */ | 108 | /* Spaces handled by "" pairs, but no way of escaping quotes */ |
109 | optlen += sprintf(options + optlen, (strchr(*argv,' ') ? "\"%s\" " : "%s "), *argv); | 109 | optlen += sprintf(options + optlen, (strchr(*argv, ' ') ? "\"%s\" " : "%s "), *argv); |
110 | } | 110 | } |
111 | return options; | 111 | return options; |
112 | } | 112 | } |