Do not write past end of inotify event structure. am: 187a6ec548 am: 488880cb43 am: e4e1b55f20

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

Change-Id: I5651629e2446de1ecd2c13680df2d33afea951ce