]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix phypOpen() escape_specialcharacters
authorMattias Bolte <matthias.bolte@googlemail.com>
Thu, 20 Aug 2009 11:59:07 +0000 (13:59 +0200)
committerChris Lalancette <clalance@redhat.com>
Thu, 20 Aug 2009 11:59:07 +0000 (13:59 +0200)
commit40d46934d0847af6a8f2e10589d1b519e6bd3386
tree09c48d1378f4f19634c1c3589255b2fb37bc945c
parent1aa1683377663b2ef494b8b851f55387627552e6
Fix phypOpen() escape_specialcharacters

Matthias correctly points out that escape_specialcharaters() takes a
length, and since we are now malloc()'ing string in phypOpen instead of
making it a static array, we can't use sizeof(string) anymore.  Calculate
the proper strlen and then use that both to allocate the string and also
pass it to escape_specialcharacters().

Signed-off-by: Chris Lalancette <clalance@redhat.com>
src/phyp/phyp_driver.c