aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/comproc.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-01-01 22:39:12 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-01-01 22:39:12 +0100
commitfeec2566a2505bf2b6771422143fb5f3d83cb7fe (patch)
treeab8bca340b2ea89383e17a9ffe7da80d1dbbfaf5 /FICS/comproc.c
parent16da0e9fa892ef5482908dbac2e9ac1099dc6110 (diff)
Added empty lines
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__);