summaryrefslogtreecommitdiffstats
path: root/lib/path.c
diff options
context:
space:
mode:
authorKarel Zak2018-05-16 14:06:02 +0200
committerKarel Zak2018-06-21 13:07:46 +0200
commit3aa4775c2f5f0ae3e72e42d924d080843208e0cb (patch)
tree1f346435046baf27dd6ffade74d7dbfdfca86981 /lib/path.c
parentlibfdisk: use new ul_path_* API (diff)
downloadkernel-qcow2-util-linux-3aa4775c2f5f0ae3e72e42d924d080843208e0cb.tar.gz
kernel-qcow2-util-linux-3aa4775c2f5f0ae3e72e42d924d080843208e0cb.tar.xz
kernel-qcow2-util-linux-3aa4775c2f5f0ae3e72e42d924d080843208e0cb.zip
lib/sysfs: fix ul_path_read_string() usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib/path.c')
-rw-r--r--lib/path.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/path.c b/lib/path.c
index 983524ef4..b1d0be9d1 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)
{