From feec2566a2505bf2b6771422143fb5f3d83cb7fe Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 1 Jan 2024 22:39:12 +0100 Subject: Added empty lines --- FICS/comproc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FICS/comproc.c b/FICS/comproc.c index a18036e..ae093fa 100644 --- a/FICS/comproc.c +++ b/FICS/comproc.c @@ -825,7 +825,9 @@ who_verbose(int p, int num, int plist[]) p1WithAttrs); } else { ret = snprintf(tmp, sizeof tmp, " %-17s", p1WithAttrs); + too_long = (ret < 0 || (size_t)ret >= sizeof tmp); + if (too_long) { fprintf(stderr, "FICS: %s: warning: " "snprintf truncated\n", __func__); -- cgit v1.2.3