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

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

Change-Id: I93001cc43eb880861c23aec198f7734bf6104468