Fix -Wfortify-source compiler warning am: 16111f1abb am: 787985b5f5

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

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