Commit a10ea30b11e672abf676b4fbaabe29e95589c07d
1 parent
7c2a9d09
Fix OpenBSD linker warnings in qemu-img
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5078 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
qemu-img.c
... | ... | @@ -699,7 +699,7 @@ static int img_info(int argc, char **argv) |
699 | 699 | get_human_readable_size(size_buf, sizeof(size_buf), total_sectors * 512); |
700 | 700 | allocated_size = get_allocated_file_size(filename); |
701 | 701 | if (allocated_size < 0) |
702 | - sprintf(dsize_buf, "unavailable"); | |
702 | + snprintf(dsize_buf, sizeof(dsize_buf), "unavailable"); | |
703 | 703 | else |
704 | 704 | get_human_readable_size(dsize_buf, sizeof(dsize_buf), |
705 | 705 | allocated_size); | ... | ... |