diff options
Diffstat (limited to 'src/notify.c')
-rw-r--r-- | src/notify.c | 2 |
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) { |