Skip to contentSkip to conversation

[5078] Fix OpenBSD linker warnings in qemu-img

Qemu-devel Blue Swirl 1 participant 1 message Aug 24, 2008

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Revision: 5078

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5078
Author:   blueswir1
Date:     2008-08-24 10:30:33 +0000 (Sun, 24 Aug 2008)

Log Message:
-----------
Fix OpenBSD linker warnings in qemu-img

Modified Paths:
--------------
trunk/qemu-img.c

Modified: trunk/qemu-img.c
===================================================================

qemu-img.c +1 -1
@@ -699,7 +699,7 @@
     get_human_readable_size(size_buf, sizeof(size_buf), total_sectors * 512);
     allocated_size = get_allocated_file_size(filename);
     if (allocated_size < 0)
-	sprintf(dsize_buf, "unavailable");
+        snprintf(dsize_buf, sizeof(dsize_buf), "unavailable");
     else
         get_human_readable_size(dsize_buf, sizeof(dsize_buf),
                                 allocated_size);