From ba8075a9fd815ba81e1b7427a650f172389a9da3 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 11 Nov 2023 20:50:42 +1100 Subject: [PATCH] [host] app: fix unchecked return value --- host/src/app.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/host/src/app.c b/host/src/app.c index 5d910387..7bf9b83d 100644 --- a/host/src/app.c +++ b/host/src/app.c @@ -603,7 +603,8 @@ static bool newKVMFRData(KVMFRUserData * dst) .features = os_hasSetCursorPos() ? KVMFR_FEATURE_SETCURSORPOS : 0 }; strncpy(kvmfr.hostver, BUILD_VERSION, sizeof(kvmfr.hostver) - 1); - appendData(dst, &kvmfr, sizeof(kvmfr)); + if (!appendData(dst, &kvmfr, sizeof(kvmfr))) + return false; } {