From 3aa4775c2f5f0ae3e72e42d924d080843208e0cb Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 16 May 2018 14:06:02 +0200 Subject: [PATCH] lib/sysfs: fix ul_path_read_string() usage Signed-off-by: Karel Zak --- lib/path.c | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.47.2