Fix buffer overflow when processing list of controllers from command line (CVE-2011-1006).
Fix buffer overflow when processing list of controllers from command line (CVE-2011-1006).

Thanks to Nelson Elhage for reporting this issue.

Signed-off-by: Jan Safranek <a7f4b96ffdd515ecef00f117294da18555749b0b@redhat.com>

rafalmiel/libcg,jrfastab/Linux-cgdcbxd,jrfastab/Linux-cgdcbxd,jrfastab/Linux-cgdcbxd,jrfastab/Linux-cgdcbxd,rafalmiel/libcg,rafalmiel/libcg,rafalmiel/libcg