Permalink
Browse files

Fix broken formatting string (%lld for uint), use QString instead (cl…

…ang).
  • Loading branch information...
daniel-kristjansson authored and jyavenard committed Feb 23, 2013
1 parent b74d24c commit c8d944a108a1b3f9d7358785fa21e7711df5ac6b
Showing with 6 additions and 2 deletions.
  1. +6 −2 mythtv/programs/mythtranscode/main.cpp
@@ -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);
}
}

0 comments on commit c8d944a

Please sign in to comment.