summaryrefslogtreecommitdiff
path: root/payloads/nvramcui/nvramcui.c
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/nvramcui/nvramcui.c')
-rw-r--r--payloads/nvramcui/nvramcui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/nvramcui/nvramcui.c b/payloads/nvramcui/nvramcui.c
index 65435489bb..b6cc4cda07 100644
--- a/payloads/nvramcui/nvramcui.c
+++ b/payloads/nvramcui/nvramcui.c
@@ -149,7 +149,7 @@ int main()
cmos_enum = next_cmos_enum_of_id(cmos_enum, option->config_id);
}
- char **values = malloc(sizeof(char*)*numvals + 1);
+ char **values = malloc(sizeof(char*)*(numvals + 1));
int cnt = 0;
cmos_enum = first_cmos_enum_of_id(opttbl, option->config_id);