]> Git Repo - qemu.git/blobdiff - qemu-img.c
Fix previous commit (spotted by Robert Riebisch).
[qemu.git] / qemu-img.c
index f9d8b7d99bbe4c82de192c9f86a02c185b4c7e1b..70c24038725486d9eb4ddc65cb3642f91bf641c2 100644 (file)
@@ -699,7 +699,7 @@ static int img_info(int argc, char **argv)
     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);
This page took 0.023716 seconds and 4 git commands to generate.