Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fsmonitor: coverity - fix variable access (beyond)
  • Loading branch information
perexg committed Oct 3, 2014
1 parent 3625490 commit ef4cebd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fsmonitor.c
Expand Up @@ -66,6 +66,8 @@ fsmonitor_thread ( void* p )
while ( i < c ) {
ev = (struct inotify_event*)&buf[i];
i += sizeof(struct inotify_event) + ev->len;
if (i > c)
break;
tvhtrace("fsmonitor", "event fd %d name %s mask %08X",
ev->wd, ev->len ? ev->name : NULL, ev->mask);

Expand Down

0 comments on commit ef4cebd

Please sign in to comment.