summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKarol Babioch <kbabioch@suse.de>2018-03-02 14:03:03 +0100
committerKarol Babioch <kbabioch@suse.de>2018-03-02 14:03:08 +0100
commitd4d78272ebe3b65a22e5c98841d451f2078625fa (patch)
tree2f9d9b5449b29480f5c3501b549bcbc2aab7a915 /src
parent564fbfb67830e2eb234bc16b3db8fecf54261f95 (diff)
mj2: Add missing variable to format string in fprintf() invocation in meta_out.c
This adds the appropriate variables to the invocation of fprintf(). They were specified in the format string, but were missing in the actual call. This fixes #1074 and #1075.
Diffstat (limited to 'src')
-rw-r--r--src/bin/mj2/meta_out.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/mj2/meta_out.c b/src/bin/mj2/meta_out.c
index 2c0e2737..139b2704 100644
--- a/src/bin/mj2/meta_out.c
+++ b/src/bin/mj2/meta_out.c
@@ -846,7 +846,7 @@ void xml_write_mdia(FILE* file, FILE* xmlout, mj2_tk_t *track,
}
for (i = 0; i < 4; i++) {
uint_to_chars(track->url[track->num_url].location[i], buf);
- fprintf(xmlout, " <Location>%s</Location>\n");
+ fprintf(xmlout, " <Location>%s</Location>\n", buf);
}
fprintf(xmlout,
" </DataEntryUrlBox>\n"); // table w. flags, URLs, URNs
@@ -868,7 +868,7 @@ void xml_write_mdia(FILE* file, FILE* xmlout, mj2_tk_t *track,
fprintf(xmlout, " <Location>");
for (i = 0; i < 4; i++) {
uint_to_chars(track->urn[track->num_urn].location[i], buf);
- fprintf(xmlout, "%s");
+ fprintf(xmlout, "%s", buf);
}
fprintf(xmlout, "</Location>\n");
fprintf(xmlout, " </DataEntryUrnBox>\n");