]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Fix off-by-1 in virFileAbsPath.
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 22 Feb 2011 17:08:12 +0000 (17:08 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 23 Feb 2011 11:11:45 +0000 (11:11 +0000)
commit9f5bbe3b926b52c6490346fd3c026546caadaefd
tree4908138f2ddd630990571f11907c1639c658e074
parent08fb2a9ce855c6ed1042e451fb4dfc6664a77d64
Fix off-by-1 in virFileAbsPath.

The virFileAbsPath was not taking into account the '/' directory
separator when allocating memory for combining cwd + path. Convert
to use virAsprintf to avoid this type of bug completely.

* src/util/util.c: Convert virFileAbsPath to use virAsprintf
src/util/util.c