Do not write past end of inotify event structure. am: 187a6ec548 am: 8346be7882

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

Change-Id: I287edd3f07d13d07468cf477a2ca3869b2635201