qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5078] Fix OpenBSD linker warnings in qemu-img
@ 2008-08-24 10:30 Blue Swirl
  0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2008-08-24 10:30 UTC (permalink / raw)
  To: qemu-devel

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
===================================================================
--- trunk/qemu-img.c	2008-08-24 10:29:29 UTC (rev 5077)
+++ trunk/qemu-img.c	2008-08-24 10:30:33 UTC (rev 5078)
@@ -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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-24 10:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-24 10:30 [Qemu-devel] [5078] Fix OpenBSD linker warnings in qemu-img Blue Swirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).