Fix OpenBSD linker warnings in qemu-img

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5078 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
blueswir1 2008-08-24 10:30:33 +00:00
parent 7c2a9d0997
commit a10ea30b11
1 changed files with 1 additions and 1 deletions

View 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);