From: Sasha Levin Subject: [PATCH] kvm tools: Add missing space after kernel params Date: Sun, 8 May 2011 21:58:04 +0300 Message-ID: <1304881084-4316-1-git-send-email-levinsasha928@gmail.com> Cc: mingo@elte.hu, asias.hejun@gmail.com, gorcunov@gmail.com, prasadjoshi124@gmail.com, kvm@vger.kernel.org, Sasha Levin To: penberg@kernel.org Return-path: Received: from mail-wy0-f174.google.com ([74.125.82.174]:56516 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932215Ab1EHS6i (ORCPT ); Sun, 8 May 2011 14:58:38 -0400 Received: by wya21 with SMTP id 21so3429990wya.19 for ; Sun, 08 May 2011 11:58:37 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: 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 --- tools/kvm/kvm-run.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tools/kvm/kvm-run.c b/tools/kvm/kvm-run.c index 58e2977..d8ef4c9 100644 --- a/tools/kvm/kvm-run.c +++ b/tools/kvm/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)); -- 1.7.5.rc3