summaryrefslogtreecommitdiff
path: root/src/libudev/libudev-util.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-01-11 16:40:04 -0500
committerGitHub <noreply@github.com>2017-01-11 16:40:04 -0500
commit5aac0be024349b488a6ca9fb9e871fbd5aef7df4 (patch)
tree3fe35d098e0c2e2a0fd0e23aa4e84c19e3e75b32 /src/libudev/libudev-util.c
parent374e69225215aa25ea67b166ec4b61ad628d5021 (diff)
parent0a10235ed4538a80f5fc7dbbf79e3a1c178f5179 (diff)
Merge pull request #4837 from ddstreet/master
Replace spaces in expanded fields in SYMLINK properties by default.
Diffstat (limited to 'src/libudev/libudev-util.c')
-rw-r--r--src/libudev/libudev-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libudev/libudev-util.c b/src/libudev/libudev-util.c
index 574cfeac85..a9819b9db3 100644
--- a/src/libudev/libudev-util.c
+++ b/src/libudev/libudev-util.c
@@ -186,7 +186,7 @@ int util_replace_whitespace(const char *str, char *to, size_t len)
to[j++] = str[i++];
}
to[j] = '\0';
- return 0;
+ return j;
}
/* allow chars in whitelist, plain ascii, hex-escaping and valid utf8 */