Do not write past end of inotify event structure. am: 855803fd4a am: 0dc29da784 am: a2fac3194a am: 0ffd09c9d4 am: d0362aea1d

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

Change-Id: I6b6c59e58fc99ca05016cf1f6064ebe25c9835a5