]> git.ipfire.org Git - thirdparty/libvirt.git/commit
(absolutePathFromBaseFile): fix up preceding commit
authorJim Meyering <meyering@redhat.com>
Fri, 5 Feb 2010 13:57:35 +0000 (14:57 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 5 Feb 2010 14:07:17 +0000 (15:07 +0100)
commitc3e73528f110f309ff1f7be01ae5a1d20a463ec9
tree36becf5f6b4c6236ae199f5a9ca42efb30b77057
parent53b7dae139f2dd66866aabedca35aa74dad1579d
(absolutePathFromBaseFile): fix up preceding commit

When configured with --enable-gcc-warnings, it didn't even compile.
* src/util/storage_file.c: Include <assert.h>.
(absolutePathFromBaseFile): Assert that converting size_t to int is valid.
Reverse length/string args to match "%.*s".
Explicitly ignore the return value of virAsprintf.
src/util/storage_file.c