diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-12-11 08:47:51 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-12-11 08:47:51 +0000 |
commit | dcf8b0114d60b057d94007dba3ca7f4e758da89c (patch) | |
tree | 8cfa11c347dbf3ab311cc47d3a42175c184e2f27 /tools/libxl/xl.c | |
parent | de7c9106c1a22c0fd759cefcecf2c428e5a76a00 (diff) | |
download | xen-dcf8b0114d60b057d94007dba3ca7f4e758da89c.tar.gz xen-dcf8b0114d60b057d94007dba3ca7f4e758da89c.tar.bz2 xen-dcf8b0114d60b057d94007dba3ca7f4e758da89c.zip |
libxenlight: fix cd-insert cli arguments parsing
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'tools/libxl/xl.c')
-rw-r--r-- | tools/libxl/xl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/libxl/xl.c b/tools/libxl/xl.c index 99f89c0700..fa92ae3f4d 100644 --- a/tools/libxl/xl.c +++ b/tools/libxl/xl.c @@ -904,10 +904,10 @@ void cd_insert(char *dom, char *virtdev, char *phys) disk.phystype = PHYSTYPE_FILE; } } else { - p = '\0'; - disk.physpath = strdup(p); + *p = '\0'; p++; - libxl_string_to_phystype(&ctx, p, &disk.phystype); + disk.physpath = p; + libxl_string_to_phystype(&ctx, phys, &disk.phystype); } } else { disk.physpath = NULL; |