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

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

Change-Id: I9d4612406585ff5a8d2f9c944ce12b164061bbeb