]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: Add missing space after kernel params
authorSasha Levin <levinsasha928@gmail.com>
Sun, 8 May 2011 18:58:04 +0000 (21:58 +0300)
committerPekka Enberg <penberg@kernel.org>
Mon, 9 May 2011 14:30:57 +0000 (17:30 +0300)
Add missing space so that user-provided kernel params
will be properly concatenated to default params.

Instead of just adding a space at the end, add it with
a separate strcat(), since it's not the first (and wouldn't
have been the last) time a space wasn't added.

Reported-by: Rodrigo Campos <rodrigo@sdfg.com.ar>
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/kvm-run.c

index 58e297781348b0933e49651eb9c725a83e7fa352..d8ef4c923f25d0bbc0358c077f7eb83346926de4 100644 (file)
@@ -424,6 +424,7 @@ int kvm_cmd_run(int argc, const char **argv, const char *prefix)
 
        memset(real_cmdline, 0, sizeof(real_cmdline));
        strcpy(real_cmdline, "notsc noapic noacpi pci=conf1 console=ttyS0 earlyprintk=serial");
+       strcat(real_cmdline, " ");
        if (kernel_cmdline)
                strlcat(real_cmdline, kernel_cmdline, sizeof(real_cmdline));