Skip to content

Commit

Permalink
mj2: Add missing variable to format string in fprintf() invocation in…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
kbabioch committed Mar 2, 2018
1 parent 564fbfb commit d4d7827
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/mj2/meta_out.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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");
Expand Down

0 comments on commit d4d7827

Please sign in to comment.