Merge "Do not write past end of inotify event structure." into sc-qpr1-dev am: 22a72a73c7

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

Change-Id: I0a3fe483d2b18c34d0a957600da5b37bd65f1103