]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
Once we build the path, we don't have all the room in path anymore.
authorBalbir Singh <balbir@linux.vnet.ibm.com>
Sat, 20 Sep 2008 00:56:09 +0000 (00:56 +0000)
committerBalbir Singh <balbir@linux.vnet.ibm.com>
Sat, 20 Sep 2008 00:56:09 +0000 (00:56 +0000)
commita8f3daf54136de7e02fc2cf153ad55051ce95ab4
tree3f409e4c88624bcb574d1662eca7c4508018efec
parent1450796033fc6c06694b4a4853f9c8c62e532564
Once we build the path, we don't have all the room in path anymore.
Instead of using sizeof(path), we should use FILENAME_MAX -
strlen(path) - 1.

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@186 4f4bb910-9a46-0410-90c8-c897d4f1cd53
api.c