aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-12-09 15:38:22 +0000
committerKalle Wallin <kaw@linux.se>2004-12-09 15:38:22 +0000
commit7bbad86af8ab86f51d45c403326ef14febb7bba2 (patch)
treec3091952c6297087c3fa5c71fb578e9cfd74b8a9
parente3c905a56bcc1fed3848485201a4a434aa9fc162 (diff)
downloadmpd-7bbad86af8ab86f51d45c403326ef14febb7bba2.tar.gz
mpd-7bbad86af8ab86f51d45c403326ef14febb7bba2.tar.xz
mpd-7bbad86af8ab86f51d45c403326ef14febb7bba2.zip
%time% format fix from Aurelien Foret (use %02d for seconds)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@2786 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/strfsong.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strfsong.c b/src/strfsong.c
index bac6d472f..4c2bf38d2 100644
--- a/src/strfsong.c
+++ b/src/strfsong.c
@@ -184,7 +184,7 @@ _strfsong(gchar *s,
else if (strncmp("%time%", p, n) == 0)
{
if (song->time != MPD_SONG_NO_TIME)
- temp = g_strdup_printf("%d:%d",
+ temp = g_strdup_printf("%d:%02d",
song->time / 60,
song->time % 60 + 1);
}