fsmonitor: coverity - fix variable access (beyond)

This commit is contained in:
Jaroslav Kysela 2014-10-03 15:02:39 +02:00
parent 36254905d7
commit ef4cebdb92

View file

@ -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);