libxenlight: fix cd-insert cli arguments parsing
PATCH 1/1 libxenlight: fix cd-insert cli arguments parsing
Hi all,
this patch fixes a bug in the command line arguments parsing code of cd_insert.
Signed-off-by Stefano Stabellini <[email protected]>
---
tools/libxl/xl.c +3 -3
@@ -904,10 +904,10 @@ 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 ;