]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/sysfs: fix ul_path_read_string() usage
authorKarel Zak <kzak@redhat.com>
Wed, 16 May 2018 12:06:02 +0000 (14:06 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 21 Jun 2018 11:07:46 +0000 (13:07 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/path.c

index 983524ef4c446ca28b43e6277a07b439b52e5cb6..b1d0be9d1b66a3608277c1098c297816bd08f965 100644 (file)
@@ -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)
 {