Do not write past end of inotify event structure. am: 855803fd4a am: 1da9219007 am: d68122fa47 am: 639f315957

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

Change-Id: I9bce73beec691264ec336d3c1e933433a56ee881