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) |
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) 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; } |