summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inotail.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/inotail.c b/inotail.c
index 6f8be7c..0187da7 100644
--- a/inotail.c
+++ b/inotail.c
@@ -388,7 +388,8 @@ static int watch_files(struct file_struct *files, int n_files)
if (handle_inotify_event(inev, f) < 0)
break;
- ev_idx += INOTIFY_BUFLEN + inev->len;
+
+ ev_idx += sizeof(struct inotify_event) + inev->len;
}
}