We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 430e9cc commit 62e3d35Copy full SHA for 62e3d35
modules/yup_core/native/yup_Watchdog_linux.h
@@ -178,7 +178,7 @@ class Watchdog::Impl final
178
continue;
179
180
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)
+ for (const char* ptr = buffer.data(); ptr < buffer.data() + numRead; ptr += offsetof (struct inotify_event, name) + notifyEvent ? notifyEvent->len : 0)
182
{
183
notifyEvent = reinterpret_cast<const inotify_event*> (ptr);
184
0 commit comments