aboutsummaryrefslogtreecommitdiffstats
path: root/src/notify.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-05-23 22:23:07 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-05-23 22:26:05 +0200
commitf5efea85a6874e4dcb206f91cedf29ef3d56f06b (patch)
treef678e72cb80226f178ef89a9faf52166701a64cf /src/notify.c
parent7fa1f0e2aa70a610d6de76e2194857b2ddc36b18 (diff)
parentb4cefe2db9d45dfba9bfd633288a406a8ad2a4c3 (diff)
downloadcalcurse-f5efea85a6874e4dcb206f91cedf29ef3d56f06b.tar.gz
calcurse-f5efea85a6874e4dcb206f91cedf29ef3d56f06b.zip
Merge branch 'maint'
Conflicts: src/io.c src/notify.c src/utils.c
Diffstat (limited to 'src/notify.c')
-rw-r--r--src/notify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/notify.c b/src/notify.c
index 2be4571..c746f49 100644
--- a/src/notify.c
+++ b/src/notify.c
@@ -716,7 +716,7 @@ void notify_config_bar(void)
case '4':
status_mesg(count_str, "");
pthread_mutex_lock(&nbar.mutex);
- printf(buf, "%d", nbar.cntdwn);
+ snprintf(buf, BUFSIZ, "%d", nbar.cntdwn);
pthread_mutex_unlock(&nbar.mutex);
if (updatestring(win[STA].p, &buf, 0, 1) == 0 &&
is_all_digit(buf) && atoi(buf) >= 0 && atoi(buf) <= DAYINSEC) {