summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2016-10-09 22:39:26 +0100
committer smf- <smf-@users.noreply.github.com>2016-10-09 22:40:42 +0100
commit6623638c3b2bb0bd9cb7a3ccf289b5eae10a0689 (patch)
tree76ea1b733fb9431547ca3e7967a24118657ec977 /src
parent99a6e70646e7dddf4b96fa6f0c1df9da2244e669 (diff)
Fix chdman addmeta --valuefile by calling the correct write_metadata. [smf]
Diffstat (limited to 'src')
-rw-r--r--src/tools/chdman.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/chdman.cpp b/src/tools/chdman.cpp
index f7fe16310bd..da385fac5ec 100644
--- a/src/tools/chdman.cpp
+++ b/src/tools/chdman.cpp
@@ -2735,7 +2735,7 @@ static void do_add_metadata(parameters_t &params)
if (text_str != params.end())
err = input_chd.write_metadata(tag, index, text, flags);
else
- err = input_chd.write_metadata(tag, index, &file[0], flags);
+ err = input_chd.write_metadata(tag, index, file, flags);
if (err != CHDERR_NONE)
report_error(1, "Error adding metadata: %s", chd_file::error_string(err));
else