Re: [bug-patch] [PATCH] terminate readlink string

2015-07-12 Thread Andreas Grünbacher
Tobias, 2015-07-12 11:21 GMT+02:00 Tobias Stoeckmann tob...@stoeckmann.org: The function readlink does not nul terminate its result string. safe_readlink is a wrapper for readlinkat, which has the same behaviour. Therefore, explicitly set '\0' and reserve one byte for it. looking good. I've

[bug-patch] [PATCH] terminate readlink string

2015-07-12 Thread Tobias Stoeckmann
The function readlink does not nul terminate its result string. safe_readlink is a wrapper for readlinkat, which has the same behaviour. Therefore, explicitly set '\0' and reserve one byte for it. --- src/util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util.c