Skip to content

Commit

Permalink
Fix broken formatting string (%lld for uint), use QString instead (cl…
Browse files Browse the repository at this point in the history
…ang).
  • Loading branch information
daniel-kristjansson authored and jyavenard committed Mar 8, 2013
1 parent b74d24c commit c8d944a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mythtv/programs/mythtranscode/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,13 @@ static void UpdatePositionMap(frm_pos_map_t &posMap, QString mapfile,
frm_pos_map_t::const_iterator it;
fprintf (mapfh, "Type: %d\n", keyType);
for (it = posMap.begin(); it != posMap.end(); ++it)
{
if (it.key() == keyType)
fprintf(mapfh, "%lld %lld\n",
it.key(), *it);
{
QString str = QString("%1 %2\n").arg(it.key()).arg(*it);
fprintf(mapfh, "%s", qPrintable(str));
}
}
fclose(mapfh);
}
}
Expand Down

0 comments on commit c8d944a

Please sign in to comment.