]> git.ipfire.org Git - thirdparty/libvirt.git/commit
openvz: Remove several larger stack allocations
authorMatthias Bolte <matthias.bolte@googlemail.com>
Sun, 3 Apr 2011 09:21:26 +0000 (11:21 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 5 Apr 2011 07:09:38 +0000 (09:09 +0200)
commitf044376530f313a81c0f5f9f7ff6b1ae02320d1f
treeb59cbd3723866b8d11850e4128e7a80ede648fad
parent76f0ae32615dc1fbe120636626f691b6d20ece31
openvz: Remove several larger stack allocations

Replace openvz_readline with getline in several places to get rid of stack
allocated buffers to hold lines.

openvzReadConfigParam allocates memory for return values instead of
expecting a preexisting buffer.
src/openvz/openvz_conf.c
src/openvz/openvz_conf.h
src/openvz/openvz_driver.c