summaryrefslogtreecommitdiff
path: root/shutdown.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2018-03-23 15:47:26 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2018-03-23 15:47:26 +0100
commit1f16ada70ccf96fc8b2bf2f7b18b4e62afa33e9e (patch)
treedd335dfa60b29b8d64ba04f89e58b596097eb2ee /shutdown.c
parentb539134e548ce6fb51c16a3407567066f76e261c (diff)
downloadvdr-1f16ada70ccf96fc8b2bf2f7b18b4e62afa33e9e.tar.gz
vdr-1f16ada70ccf96fc8b2bf2f7b18b4e62afa33e9e.tar.bz2
Fixed some warnings from g++ 7.2.0 regarding fixed buffer sizes
Diffstat (limited to 'shutdown.c')
-rw-r--r--shutdown.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/shutdown.c b/shutdown.c
index 7b8ff804..1fb0394b 100644
--- a/shutdown.c
+++ b/shutdown.c
@@ -6,7 +6,7 @@
*
* Original version written by Udo Richter <udo_richter@gmx.de>.
*
- * $Id: shutdown.c 4.1 2015/07/18 11:29:26 kls Exp $
+ * $Id: shutdown.c 4.2 2018/03/23 15:39:21 kls Exp $
*/
#include "shutdown.h"
@@ -69,10 +69,7 @@ bool cCountdown::Update(void)
timedOut = true;
if (counter != NewCounter) {
counter = NewCounter;
- char time[10];
- snprintf(time, sizeof(time), "%d:%d0", counter > 0 ? counter / 6 : 0, counter > 0 ? counter % 6 : 0);
- cString Message = cString::sprintf(message, time);
- Skins.Message(mtStatus, Message);
+ Skins.Message(mtStatus, cString::sprintf(message, *cString::sprintf("%d:%d0", counter > 0 ? counter / 6 : 0, counter > 0 ? counter % 6 : 0)));
return true;
}
}