[PATCH 2/8] Fixed compile error where &buf was missing
Ryan Gahagan
rgahagan at cs.utexas.edu
Tue Nov 10 21:56:14 UTC 2020
Signed-off-by: Ryan Gahagan <rgahagan at cs.utexas.edu>
---
tools/virsh-domain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index 16227085cc..810e55fa53 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -707,7 +707,7 @@ cmdAttachDisk(vshControl *ctl, const vshCmd *cmd)
if (!host_port)
virBufferAsprintf(" name='%s'", host_name);
else {
- host_name[host_port - host_name] = '\0';
+ host_name[(int)(host_port - host_name)] = '\0';
virBufferAsprintf(" name='%s' port='%s'", host_name, host_port + 1);
}
}
--
2.29.0
More information about the libvir-list
mailing list