diff options
| author | Alexander Barton <alex@barton.de> | 2012-11-11 16:46:57 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2012-11-11 16:46:57 +0100 |
| commit | d11a700589b2abab71b67ffb81f17f38936a169c (patch) | |
| tree | 1b2dc29ee77bd89252d5cd3944944d03bc76fe9f /src | |
| parent | 0a26079af2f5ee2bf5d0c67d1c701abf77d3cd56 (diff) | |
| download | ngircd-d11a700589b2abab71b67ffb81f17f38936a169c.tar.gz ngircd-d11a700589b2abab71b67ffb81f17f38936a169c.zip | |
irc-info.c: Use strlcpy() instead of strcpy()
This fixes the following warning of gcc (tested on OpenBSD 5.0:)
irc-info.c:990: warning: strcpy() is almost always misused,
please use strlcpy
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/irc-info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ngircd/irc-info.c b/src/ngircd/irc-info.c index 54f83170..40d46354 100644 --- a/src/ngircd/irc-info.c +++ b/src/ngircd/irc-info.c @@ -987,7 +987,7 @@ IRC_WHO_Mask(CLIENT *Client, char *Mask, bool OnlyOps) if (IRC_CheckListTooBig(Client, count, MAX_RPL_WHO, "WHO")) break; - strcpy(flags, who_flags_status(Client_Modes(c))); + strlcpy(flags, who_flags_status(Client_Modes(c)), sizeof(flags)); if (strchr(Client_Modes(c), 'o')) strlcat(flags, "*", sizeof(flags)); |