Here the version with the correct coding style. diff --git a/hw/multiboot.c b/hw/multiboot.c index 0d2bfb4..2380d5e 100644 --- a/hw/multiboot.c +++ b/hw/multiboot.c @@ -267,6 +267,11 @@ int load_multiboot(void *fw_cfg, /* if a space comes after the module filename, treat everything after that as parameters */ target_phys_addr_t c = mb_add_cmdline(&mbs, initrd_filename); + /* Kill spaces at the beginning of the filename */ + while (*initrd_filename == ' ') + { + initrd_filename++; + } if ((next_space = strchr(initrd_filename, ' '))) *next_space = '\0'; mb_debug("multiboot loading module: %s\n", initrd_filename);
- [Qemu-devel] [PATCH] hw: improve multiboot module loadin... ralf
- Re: [Qemu-devel] [PATCH] hw: improve multiboot modu... Alexander Graf
- Re: [Qemu-devel] [PATCH] hw: improve multiboot ... Ralf Ramsauer
- Re: [Qemu-devel] [PATCH] hw: improve multib... Alexander Graf
- Re: [Qemu-devel] [PATCH] hw: improve mu... Ralf Ramsauer
- Re: [Qemu-devel] [PATCH] hw: impro... Alexander Graf
- Re: [Qemu-devel] [PATCH] hw: impro... Ralf Ramsauer
- Re: [Qemu-devel] [PATCH] hw: i... Stefan Hajnoczi
- Re: [Qemu-devel] [PATCH] h... Ralf Ramsauer
- Re: [Qemu-devel] [PATCH] h... Stefan Hajnoczi
- Re: [Qemu-devel] [PATCH] h... Adam Lackorzynski
- Re: [Qemu-devel] [PATCH] hw: improve multiboot modu... Brad Hards
- Re: [Qemu-devel] [PATCH] hw: improve multiboot modu... Stefan Hajnoczi