summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
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) {