summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorCody P Schafer <devel@codyps.com>2014-03-13 11:14:21 -0700
committerCody P Schafer <devel@codyps.com>2014-03-13 11:14:21 -0700
commitebfd7d45c6b8eb5b2a1ee6e97a3f21f5f5bf9b43 (patch)
treebd9dd4f6ebe82943d61818d130b3a3f6d48d44dd /src/main.c
parent3f77401a554c4db6b67c12732b7acaea7b229bbb (diff)
downloadpianobar-ebfd7d45c6b8eb5b2a1ee6e97a3f21f5f5bf9b43.tar.gz
pianobar-ebfd7d45c6b8eb5b2a1ee6e97a3f21f5f5bf9b43.tar.bz2
pianobar-ebfd7d45c6b8eb5b2a1ee6e97a3f21f5f5bf9b43.zip
fix warnings now noted due to format string checking
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 4cca654..ba46770 100644
--- a/src/main.c
+++ b/src/main.c
@@ -328,7 +328,7 @@ static void BarMainPrintTime (BarApp_t *app) {
sign = POSITIVE;
songRemaining = -songRemaining;
}
- BarUiMsg (&app->settings, MSG_TIME, "%c%02i:%02i/%02i:%02i\r",
+ BarUiMsg (&app->settings, MSG_TIME, "%c%02i:%02i/%02li:%02li\r",
(sign == POSITIVE ? '+' : '-'),
songRemaining / 60, songRemaining % 60,
app->player.songDuration / BAR_PLAYER_MS_TO_S_FACTOR / 60,