summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2010-04-15 14:55:01 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2010-04-15 14:55:01 +0000
commitc24d383c15f6d31cd1dd5fb8e090db0561421599 (patch)
tree09a9a5fa49118e89006e762b08598c8aab3464dd /util
parent1c797a101bf30634eead8714db8a68782fa1b304 (diff)
downloadcoreboot-c24d383c15f6d31cd1dd5fb8e090db0561421599.tar.xz
Avoid strdup(0) in build_opt_tbl
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Patrick Georgi <patrick.georgi@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5446 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util')
-rw-r--r--util/options/build_opt_tbl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/options/build_opt_tbl.c b/util/options/build_opt_tbl.c
index b4e4151dc1..ae36f87e03 100644
--- a/util/options/build_opt_tbl.c
+++ b/util/options/build_opt_tbl.c
@@ -570,7 +570,7 @@ int main(int argc, char **argv)
struct cmos_option_table *hdr;
struct lb_record *ptr, *end;
- strncpy(tempfilename, dirname(strdup(option)), TMPFILE_LEN);
+ strncpy(tempfilename, dirname(strdup(header)), TMPFILE_LEN);
strncat(tempfilename, TMPFILE_TEMPLATE, TMPFILE_LEN);
tempfile = mkstemp(tempfilename);
if(tempfile == -1) {