From: Andreas Reichel <[email protected]>

ustate is an 8-bit int, not a 16-bit int.

Signed-off-by: Andreas Reichel <[email protected]>
---
 env/env_api_fat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/env/env_api_fat.c b/env/env_api_fat.c
index 60a5ff2..1705cb9 100644
--- a/env/env_api_fat.c
+++ b/env/env_api_fat.c
@@ -311,7 +311,7 @@ int bgenv_get(BGENV *env, char *key, uint64_t *type, void 
*data,
        case EBGENV_USTATE:
                return bgenv_get_uint(buffer, type, data,
                                      env->data->ustate,
-                                     USERVAR_TYPE_UINT16);
+                                     USERVAR_TYPE_UINT8);
        case EBGENV_IN_PROGRESS:
                return bgenv_get_uint(buffer, type, data,
                                      env->data->in_progress,
-- 
2.15.0

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/20171127121430.31448-8-andreas.reichel.ext%40siemens.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to