commit | d66e9240445a00f2b574a3794091c81ac1ec8a7e | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Wed Aug 08 19:26:25 2012 +0400 |
committer | Kir Kolyshkin <kir@openvz.org> | Thu Aug 16 20:00:21 2012 +0400 |
tree | bb03b20d32e90ea11d9391ab65b8083ff8f6ecd1 | |
parent | 82e093433e1b0a05f7c573ddcdf01a51eb571974 [diff] |
get_fs_root(): add check for string overflow Check the length of returned string and error out if it's too long. While at it, use PATH_MAX for the string size, and declare len as size_t as this is what strlen returns. Signed-off-by: Kir Kolyshkin <kir@openvz.org>