Commit 1d8aa237 authored by Rodger Combs's avatar Rodger Combs Committed by Martin Storsjö

dashenc: Fix format string generation

Previously this always used the "lld" format for all parameters,
not only time parameters.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent da9bffaf
......@@ -282,7 +282,7 @@ static DASHTmplId dash_read_tmpl_id(const char *identifier, char *format_tag,
// next parse the dash format-tag and generate a c-string format tag
// (next_ptr now points at the first '%' at the beginning of the format-tag)
if (id_type != DASH_TMPL_ID_UNDEFINED) {
const char *number_format = DASH_TMPL_ID_TIME ? "lld" : "d";
const char *number_format = (id_type == DASH_TMPL_ID_TIME) ? "lld" : "d";
if (next_ptr[0] == '$') { // no dash format-tag
snprintf(format_tag, format_tag_size, "%%%s", number_format);
*ptr = &next_ptr[1];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment