diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-11-02 22:44:36 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-02 22:44:36 -0600 |
commit | b23f2b72bfad53e4420ac661d1771801fc2003f3 (patch) | |
tree | 288e2a20228ce10d387737c84bd74e6d2989e027 /src/udev/udev-watch.c | |
parent | 7fa6328cc447a4a834ebc8d68ae6c335f4c9c9d3 (diff) | |
parent | e02c6135602bef7de81d7736d5c0959d45d5085c (diff) |
Merge pull request #4546 from keszybz/xsprintf-revert
xsprintf revert
Diffstat (limited to 'src/udev/udev-watch.c')
-rw-r--r-- | src/udev/udev-watch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/udev/udev-watch.c b/src/udev/udev-watch.c index 9ce5e975de..bc9096ed0c 100644 --- a/src/udev/udev-watch.c +++ b/src/udev/udev-watch.c @@ -89,7 +89,7 @@ unlink: } void udev_watch_begin(struct udev *udev, struct udev_device *dev) { - char filename[UTIL_PATH_SIZE]; + char filename[sizeof("/run/udev/watch/") + DECIMAL_STR_MAX(int)]; int wd; int r; @@ -116,7 +116,7 @@ void udev_watch_begin(struct udev *udev, struct udev_device *dev) { void udev_watch_end(struct udev *udev, struct udev_device *dev) { int wd; - char filename[UTIL_PATH_SIZE]; + char filename[sizeof("/run/udev/watch/") + DECIMAL_STR_MAX(int)]; if (inotify_fd < 0) return; @@ -135,7 +135,7 @@ void udev_watch_end(struct udev *udev, struct udev_device *dev) { } struct udev_device *udev_watch_lookup(struct udev *udev, int wd) { - char filename[UTIL_PATH_SIZE]; + char filename[sizeof("/run/udev/watch/") + DECIMAL_STR_MAX(int)]; char device[UTIL_NAME_SIZE]; ssize_t len; |