From c1b14f49ead9a29711cde5334155819cd1c6c90d Mon Sep 17 00:00:00 2001 From: Sergey Safarov Date: Fri, 4 Feb 2022 12:01:08 +0300 Subject: [PATCH] presence: fixed format-truncation warning GH #3013 --- src/modules/presence/presence.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/presence/presence.c b/src/modules/presence/presence.c index da253acbac0..d6e287c40eb 100644 --- a/src/modules/presence/presence.c +++ b/src/modules/presence/presence.c @@ -566,8 +566,8 @@ static int child_init(int rank) int i; for(i = 0; i < pres_notifier_processes; i++) { - char tmp[21]; - snprintf(tmp, 21, "PRESENCE NOTIFIER %d", i); + char tmp[30]; + snprintf(tmp, 30, "PRESENCE NOTIFIER %d", i); pres_notifier_id[i] = i; if(fork_basic_utimer(PROC_TIMER, tmp, 1, pres_timer_send_notify,