diff options
-rw-r--r-- | inotail.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } } |