Signed-off-by: Ryan Gahagan <rgahagan(a)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