lib/sysfs: fix ul_path_read_string() usage

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2018-05-16 14:06:02 +02:00
parent efb17218ef
commit 3aa4775c2f
1 changed files with 1 additions and 0 deletions

View 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)
{