fix PATH_MAX conditional compilation
commit4d224196614a005b519682b3eaff312ec71b5b97
authorJean-Christophe DUBOIS <jcd@tribudubois.net>
Wed, 2 Sep 2009 21:59:02 +0000 (2 23:59 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 9 Sep 2009 19:57:21 +0000 (9 14:57 -0500)
treebdc89aefc9337026d292694f8f423c4f6071815f
parentd6fd1e660312f96e6b5ca708b07a58df725ca055
fix PATH_MAX conditional compilation

PATH_MAX is used elsewhere in the qemu source tree without protection.

In addtion the actual code would not compile if PATH_MAX is not defined

Last the free() call is wrong as p is not malloc()ed.

Signed-off-by: Jean-Christophe Dubois <jcd@tribudubois.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vl.c