Merge pull request #1094 from kbabioch/fix/missing-format-string-parameter

mj2: Add missing variable to format string in fprintf() invocation in meta_out.c
This commit is contained in:
Even Rouault 2018-03-04 23:16:04 +01:00 committed by GitHub
commit e98d0a20f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -846,7 +846,7 @@ void xml_write_mdia(FILE* file, FILE* xmlout, mj2_tk_t *track,
} }
for (i = 0; i < 4; i++) { for (i = 0; i < 4; i++) {
uint_to_chars(track->url[track->num_url].location[i], buf); 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, fprintf(xmlout,
" </DataEntryUrlBox>\n"); // table w. flags, URLs, URNs " </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>"); fprintf(xmlout, " <Location>");
for (i = 0; i < 4; i++) { for (i = 0; i < 4; i++) {
uint_to_chars(track->urn[track->num_urn].location[i], buf); uint_to_chars(track->urn[track->num_urn].location[i], buf);
fprintf(xmlout, "%s"); fprintf(xmlout, "%s", buf);
} }
fprintf(xmlout, "</Location>\n"); fprintf(xmlout, "</Location>\n");
fprintf(xmlout, " </DataEntryUrnBox>\n"); fprintf(xmlout, " </DataEntryUrnBox>\n");