From: Karel Zak Date: Wed, 16 May 2018 12:06:02 +0000 (+0200) Subject: lib/sysfs: fix ul_path_read_string() usage X-Git-Tag: v2.33-rc1~193 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3aa4775c2f5f0ae3e72e42d924d080843208e0cb;p=thirdparty%2Futil-linux.git lib/sysfs: fix ul_path_read_string() usage Signed-off-by: Karel Zak --- diff --git a/lib/path.c b/lib/path.c index 983524ef4c..b1d0be9d1b 100644 --- a/lib/path.c +++ b/lib/path.c @@ -493,6 +493,7 @@ int ul_path_readf(struct path_cxt *pc, char *buf, size_t len, const char *path, * Returns newly allocated buffer with data from file. Maximal size is BUFSIZ * (send patch if you need something bigger;-) * + * Returns size of the string! */ int ul_path_read_string(struct path_cxt *pc, char **str, const char *path) {