From 9de8379f479e96907d9eb2f24617b579bb9436b7 Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Mon, 3 Aug 2015 14:24:30 +0200 Subject: [PATCH] sprintf instead of asprintf --- src/video.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.5