]> git.proxmox.com Git - mirror_lxc.git/commit
use getline instead of fgets
authorClement Calmels <clement.calmels@fr.ibm.com>
Mon, 18 Jan 2010 22:08:12 +0000 (23:08 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Mon, 18 Jan 2010 22:08:12 +0000 (23:08 +0100)
commit2382ecffdbea7fd12349d68e65cc673797d5f34c
treef7a8248fe6d887e1ed4adae7b711b63ccb4fb470
parent8eec72f75d5a035a0c5d4d2ba882c5ae9cb44a72
use getline instead of fgets

The getline function allocate the needed memory. Fix buffer can lead
to 'hard to find' bug. I don't test the pivot_root part but the other
parts are ok.

Signed-off-by: Clement Calmels <clement.calmels@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/conf.c
src/lxc/confile.c
src/lxc/parse.c
src/lxc/parse.h