mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-04 12:41:37 +00:00
kvm: Append missing ending space for built-in command line
We have a predefined command line but when an user passes additional parameters the last predefined argument and first user's one get sticked together. Fix it by adding ending space for built-in command line. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
committed by
Will Deacon
parent
55e19624b7
commit
24749375ab
@@ -67,7 +67,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
kvm__setup_cpuid(kvm);
|
||||
|
||||
strcpy(real_cmdline, "notsc nolapic nosmp noacpi earlyprintk=serial,keep");
|
||||
strcpy(real_cmdline, "notsc nolapic nosmp noacpi earlyprintk=serial,keep ");
|
||||
if (kernel_cmdline) {
|
||||
strlcat(real_cmdline, kernel_cmdline, sizeof(real_cmdline));
|
||||
real_cmdline[sizeof(real_cmdline)-1] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user