Blame SOURCES/0001-sys-match-counter-variable-type-for-cmdAuthsArray-co.patch

e56592
From 5ab8190843597ff6a255c59f91582e4dca117927 Mon Sep 17 00:00:00 2001
e56592
From: Jonas Witschel <diabonas@gmx.de>
e56592
Date: Thu, 21 Nov 2019 14:49:27 +0100
e56592
Subject: [PATCH] sys: match counter variable type for cmdAuthsArray->count
e56592
e56592
TSS2L_SYS_AUTH_COMMAND.count is defined as uint16_t, so the counter
e56592
variable should be uint16_t as well.
e56592
e56592
Signed-off-by: Jonas Witschel <diabonas@gmx.de>
e56592
---
e56592
 src/tss2-sys/api/Tss2_Sys_SetCmdAuths.c | 2 +-
e56592
 1 file changed, 1 insertion(+), 1 deletion(-)
e56592
e56592
diff --git a/src/tss2-sys/api/Tss2_Sys_SetCmdAuths.c b/src/tss2-sys/api/Tss2_Sys_SetCmdAuths.c
e56592
index 1bc3f3c2556f..d946c14e5cfb 100644
e56592
--- a/src/tss2-sys/api/Tss2_Sys_SetCmdAuths.c
e56592
+++ b/src/tss2-sys/api/Tss2_Sys_SetCmdAuths.c
e56592
@@ -20,7 +20,7 @@ TSS2_RC Tss2_Sys_SetCmdAuths(
e56592
     const TSS2L_SYS_AUTH_COMMAND *cmdAuthsArray)
e56592
 {
e56592
     _TSS2_SYS_CONTEXT_BLOB *ctx = syscontext_cast(sysContext);
e56592
-    uint8_t i;
e56592
+    uint16_t i;
e56592
     UINT32 authSize = 0;
e56592
     UINT32 newCmdSize = 0;
e56592
     size_t authOffset;
e56592
-- 
e56592
2.27.0
e56592