Skip to content

Commit 62e3d35

Browse files
committed
Fix linux
1 parent 430e9cc commit 62e3d35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/yup_core/native/yup_Watchdog_linux.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class Watchdog::Impl final
178178
continue;
179179

180180
const inotify_event* notifyEvent = nullptr;
181-
for (const char* ptr = buffer.data(); ptr < buffer.data() + numRead; ptr += sizeof (struct inotify_event) + notifyEvent ? notifyEvent->len : 0)
181+
for (const char* ptr = buffer.data(); ptr < buffer.data() + numRead; ptr += offsetof (struct inotify_event, name) + notifyEvent ? notifyEvent->len : 0)
182182
{
183183
notifyEvent = reinterpret_cast<const inotify_event*> (ptr);
184184

0 commit comments

Comments
 (0)