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

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

Change-Id: Ic15d63bdf637a871716d75cdc882e0d95e948638