aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2026-03-23 00:39:32 +0100
committerPřemysl Eric Janouch <p@janouch.name>2026-03-23 00:39:32 +0100
commitd1e54fee0d442b601c6d9b69ae8666f6a589eb52 (patch)
tree823fd9a7b99eb7256480712ef87f4bcaab41b1b8
parentd9b1ea079ecee6ba176c8f60b5f942bfe240a40b (diff)
downloadsdn-d1e54fee0d442b601c6d9b69ae8666f6a589eb52.tar.gz
sdn-d1e54fee0d442b601c6d9b69ae8666f6a589eb52.tar.xz
sdn-d1e54fee0d442b601c6d9b69ae8666f6a589eb52.zip
Fix inotify readouts
-rw-r--r--sdn.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdn.cpp b/sdn.cpp
index a7aa16a..9e9a5ab 100644
--- a/sdn.cpp
+++ b/sdn.cpp
@@ -1738,7 +1738,7 @@ fun watch_check () {
while ((len = read (g.watch_fd, buf, sizeof buf)) > 0) {
const inotify_event *e;
for (char *ptr = buf; ptr < buf + len; ptr += sizeof *e + e->len) {
- e = (const inotify_event *) buf;
+ e = (const inotify_event *) ptr;
if (e->wd == g.watch_wd)
changed = true;
}