diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-01-01 22:39:12 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-01-01 22:39:12 +0100 |
commit | feec2566a2505bf2b6771422143fb5f3d83cb7fe (patch) | |
tree | ab8bca340b2ea89383e17a9ffe7da80d1dbbfaf5 /FICS/comproc.c | |
parent | 16da0e9fa892ef5482908dbac2e9ac1099dc6110 (diff) |
Added empty lines
Diffstat (limited to 'FICS/comproc.c')
-rw-r--r-- | FICS/comproc.c | 2 |
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__); |