Fix -Wfortify-source compiler warning am: 16111f1abb

Original change: https://android-review.googlesource.com/c/platform/system/incremental_delivery/+/2860694

Change-Id: Ie52ceb9a9cd316efd4f7bd00e8b4961078865645
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>