From: Flavio Tordini Date: Mon, 3 Aug 2015 12:24:30 +0000 (+0200) Subject: sprintf instead of asprintf X-Git-Tag: 2.5~56 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9de8379f479e96907d9eb2f24617b579bb9436b7;p=minitube sprintf instead of asprintf --- diff --git a/src/video.cpp b/src/video.cpp index 3761c4d..9d3c3d7 100644 --- a/src/video.cpp +++ b/src/video.cpp @@ -481,8 +481,8 @@ QString Video::formattedDuration() const { duration /= 60; int hours = duration % 24; if (hours == 0) - return res.asprintf("%d:%02d", minutes, seconds); - return res.asprintf("%d:%02d:%02d", hours, minutes, seconds); + return res.sprintf("%d:%02d", minutes, seconds); + return res.sprintf("%d:%02d:%02d", hours, minutes, seconds); } void Video::saveDefinitionForUrl(const QString& url, const VideoDefinition& definition) {