From d1e54fee0d442b601c6d9b69ae8666f6a589eb52 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Mon, 23 Mar 2026 00:39:32 +0100 Subject: Fix inotify readouts --- sdn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sdn.cpp') 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; } -- cgit v1.2.3-70-g09d2