summaryrefslogtreecommitdiff
path: root/modutils/modutils.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-10-31 02:04:28 +0000
committerDenis Vlasenko2008-10-31 02:04:28 +0000
commitbb26db49b1b3a6cbc4b72c0cc6948432e3e77996 (patch)
tree33a7976a4b4f41839b3f4f175ac4b472daac2619 /modutils/modutils.c
parentb9b344aa44ba6221edc8f09398325399049bf388 (diff)
downloadbusybox-bb26db49b1b3a6cbc4b72c0cc6948432e3e77996.zip
busybox-bb26db49b1b3a6cbc4b72c0cc6948432e3e77996.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modutils/modutils.c b/modutils/modutils.c
index 18ea537..10b49c9 100644
--- a/modutils/modutils.c
+++ b/modutils/modutils.c
@@ -106,7 +106,7 @@ char * FAST_FUNC parse_cmdline_module_options(char **argv)
while (*++argv) {
options = xrealloc(options, optlen + 2 + strlen(*argv) + 2);
/* Spaces handled by "" pairs, but no way of escaping quotes */
- optlen += sprintf(options + optlen, (strchr(*argv,' ') ? "\"%s\" " : "%s "), *argv);
+ optlen += sprintf(options + optlen, (strchr(*argv, ' ') ? "\"%s\" " : "%s "), *argv);
}
return options;
}