diff options
| author | Přemysl Eric Janouch <p@janouch.name> | 2026-03-23 00:39:32 +0100 |
|---|---|---|
| committer | Přemysl Eric Janouch <p@janouch.name> | 2026-03-23 00:39:32 +0100 |
| commit | d1e54fee0d442b601c6d9b69ae8666f6a589eb52 (patch) | |
| tree | 823fd9a7b99eb7256480712ef87f4bcaab41b1b8 /sdn.cpp | |
| parent | d9b1ea079ecee6ba176c8f60b5f942bfe240a40b (diff) | |
| download | sdn-d1e54fee0d442b601c6d9b69ae8666f6a589eb52.tar.gz sdn-d1e54fee0d442b601c6d9b69ae8666f6a589eb52.tar.xz sdn-d1e54fee0d442b601c6d9b69ae8666f6a589eb52.zip | |
Fix inotify readouts
Diffstat (limited to 'sdn.cpp')
| -rw-r--r-- | sdn.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |
