summaryrefslogtreecommitdiffstats
path: root/src/udev/udev-node.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-12-14 19:02:29 +0100
committerGitHub <noreply@github.com>2017-12-14 19:02:29 +0100
commitfbd0b64f44a7bae678137d67ad5da202f6b8d809 (patch)
tree0402dca4e258583e009d07c0d8eb9c0fad19d5ac /src/udev/udev-node.c
parentMerge pull request #7610 from poettering/stdio-nolocking (diff)
downloadsystemd-fbd0b64f44a7bae678137d67ad5da202f6b8d809.tar.xz
systemd-fbd0b64f44a7bae678137d67ad5da202f6b8d809.zip
tree-wide: make use of new STRLEN() macro everywhere (#7639)
Let's employ coccinelle to do this for us. Follow-up for #7625.
Diffstat (limited to 'src/udev/udev-node.c')
-rw-r--r--src/udev/udev-node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-node.c b/src/udev/udev-node.c
index ef893247ad..bb845889cc 100644
--- a/src/udev/udev-node.c
+++ b/src/udev/udev-node.c
@@ -187,7 +187,7 @@ static void link_update(struct udev_device *dev, const char *slink, bool add) {
const char *target;
char buf[UTIL_PATH_SIZE];
- util_path_encode(slink + strlen("/dev"), name_enc, sizeof(name_enc));
+ util_path_encode(slink + STRLEN("/dev"), name_enc, sizeof(name_enc));
strscpyl(dirname, sizeof(dirname), "/run/udev/links/", name_enc, NULL);
strscpyl(filename, sizeof(filename), dirname, "/", udev_device_get_id_filename(dev), NULL);