From d74181cc2b3574eb315a7d4b4394ca4cac70ce5f Mon Sep 17 00:00:00 2001 From: Sasha Levin Date: Sun, 8 May 2011 21:58:04 +0300 Subject: [PATCH] kvm tools: Add missing space after kernel params 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 Signed-off-by: Sasha Levin Signed-off-by: Pekka Enberg --- kvm-run.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kvm-run.c b/kvm-run.c index 58e2977..d8ef4c9 100644 --- a/kvm-run.c +++ b/kvm-run.c @@ -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));