Do not write past end of inotify event structure. am: 4541d3c71e am: 1f209406dc

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/16034932

Change-Id: Id1a5f185c7bf0e552e3fd4237b6dfc8d130c5d83