summaryrefslogtreecommitdiff
path: root/util/nvramtool/layout.h
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2008-09-18 14:49:33 +0000
committerStefan Reinauer <stepan@openbios.org>2008-09-18 14:49:33 +0000
commit297b91c6cde7e1570be67cc664d5adef2823a53f (patch)
tree5d20e962beff5200b48f946296026c75192ab8ed /util/nvramtool/layout.h
parent4614aedd4b6fb31c30f4eff347f91e4972edecf7 (diff)
downloadcoreboot-297b91c6cde7e1570be67cc664d5adef2823a53f.tar.xz
fix two minor bugs in nvramtool. (trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3582 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/nvramtool/layout.h')
-rw-r--r--util/nvramtool/layout.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/nvramtool/layout.h b/util/nvramtool/layout.h
index 94beb12c4b..69e71d6a9d 100644
--- a/util/nvramtool/layout.h
+++ b/util/nvramtool/layout.h
@@ -59,7 +59,7 @@ typedef struct
unsigned length;
cmos_entry_config_t config;
unsigned config_id;
- char name[CMOS_MAX_NAME_LENGTH];
+ char name[CMOS_MAX_NAME_LENGTH + 1];
}
cmos_entry_t;
@@ -69,7 +69,7 @@ cmos_entry_t;
typedef struct
{ unsigned config_id;
unsigned long long value;
- char text[CMOS_MAX_TEXT_LENGTH];
+ char text[CMOS_MAX_TEXT_LENGTH + 1];
}
cmos_enum_t;