diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2026-04-03 15:22:16 +0200 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2026-04-03 15:22:16 +0200 |
| commit | b76b677040488af7c278d5f433082832611c5632 (patch) | |
| tree | 6d72f86bd7447ae9983250be832eccfcf3a39e2f /FICS | |
| parent | 20813becf40899c40ff5d16e524052bec9d2cadf (diff) | |
Fixed conflicting parameter name in com_stats_andify()
Diffstat (limited to 'FICS')
| -rw-r--r-- | FICS/comproc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/FICS/comproc.c b/FICS/comproc.c index 06bf3b2..0425828 100644 --- a/FICS/comproc.c +++ b/FICS/comproc.c @@ -381,19 +381,19 @@ FindPlayer(int p, char *name, int *p1, int *connected) } PRIVATE void -com_stats_andify(int *numbers, int howmany, char *dest, size_t dsize) +com_stats_andify(int *numbers, int p_howmany, char *dest, size_t dsize) { char tmp[10] = { '\0' }; *dest = '\0'; - while (howmany--) { - snprintf(tmp, sizeof tmp, "%d", numbers[howmany]); + while (p_howmany--) { + snprintf(tmp, sizeof tmp, "%d", numbers[p_howmany]); strlcat(dest, tmp, dsize); - if (howmany > 1) + if (p_howmany > 1) strlcpy(tmp, ", ", sizeof tmp); - else if (howmany == 1) + else if (p_howmany == 1) strlcpy(tmp, " and ", sizeof tmp); else strlcpy(tmp, ".\n", sizeof tmp); |
