From 1f9961c46d1d507046e57bb08e0d2e25d77f2d82 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Wed, 7 Mar 2012 09:29:46 -0500 Subject: path_utils: path_concat should return empty string on ENOBUFS Also clean up the code a bit and add more comments --- path_utils/path_utils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'path_utils/path_utils.h') diff --git a/path_utils/path_utils.h b/path_utils/path_utils.h index 2fd567c..17ed1f4 100644 --- a/path_utils/path_utils.h +++ b/path_utils/path_utils.h @@ -198,7 +198,8 @@ bool is_absolute_path(const char *path); * @param[in] tail The second component of the path * * @return \c SUCCESS if successful, non-zero error code otherwise. - * \li \c ENOBUFS If the buffer space is too small + * \li \c ENOBUFS If the buffer space is too small. In this case, + * path will be set to an empty string. */ int path_concat(char *path, size_t path_size, const char *head, const char *tail); -- cgit