aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/comproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/comproc.c')
-rw-r--r--FICS/comproc.c2
1 files changed, 2 insertions, 0 deletions
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__);