]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Use virGetHostname instead of gethostname.
authorChris Lalancette <clalance@redhat.com>
Thu, 30 Jul 2009 14:41:12 +0000 (16:41 +0200)
committerChris Lalancette <clalance@redhat.com>
Sun, 2 Aug 2009 10:07:02 +0000 (12:07 +0200)
commit180ca598c4517012014d226c78068d4b38ff9e24
treed408916070c26688a6add15b28b12652ea68ce74
parentf24d4671d4531e7aa6e142a7267b2e5a99751ad0
Use virGetHostname instead of gethostname.

Fix up qemudDomainMigratePrepare2 to use virGetHostname instead of
gethostname.  Besides the fact that virGetHostname is far more clever,
there was a latent bug in the handling that could cause a buffer overflow
on a very long hostname.

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