X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=modutils%2Fmodutils.c;h=0d7d72d8b330a89f393ec640232d8192a609f569;hb=6a2d0d9b8d90ba76c2f90fc352acc886bd3e578d;hp=18ea5374e73d5fe8966d9011b720273feaaa10d7;hpb=ba1315d0fbe7fa43aa7481b5d6e92bd03b0152d5;p=oweals%2Fbusybox.git diff --git a/modutils/modutils.c b/modutils/modutils.c index 18ea5374e..0d7d72d8b 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; } @@ -123,7 +123,7 @@ int FAST_FUNC bb_init_module(const char *filename, const char *options) #endif /* Use the 2.6 way */ - image = (char *) xmalloc_open_zipped_read_close(filename, &len); + image = xmalloc_open_zipped_read_close(filename, &len); if (image) { if (init_module(image, len, options) != 0) rc = errno;