diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-20 04:34:03 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-20 04:34:03 +0000 |
| commit | 0b3824c86a99354d06339b95e40515de762d65f7 (patch) | |
| tree | 133edb1fb478a97674cb63e1f89a4762053d24e2 /src/protocol/inspircd11.c | |
| parent | 0d3ec454de486da5cbc292f7e694ee8ab7e4fae0 (diff) | |
Apply some changes based on possible "flaws" found with flawfinder.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2574 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/inspircd11.c')
| -rw-r--r-- | src/protocol/inspircd11.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c index 7d2044706..c6740f561 100644 --- a/src/protocol/inspircd11.c +++ b/src/protocol/inspircd11.c @@ -154,7 +154,7 @@ static char currentpass[1024]; /* PASS */ void inspircd_cmd_pass(const char *pass) { - strncpy(currentpass, pass, 1024); + strlcpy(currentpass, pass, sizeof(currentpass)); } @@ -568,8 +568,8 @@ int anope_event_fjoin(const char *source, int ac, const char **av) } } } - strncat(nicklist, prefixandnick, 513); - strncat(nicklist, " ", 513); + strlcat(nicklist, prefixandnick, sizeof(nicklist)); + strlcat(nicklist, " ", sizeof(nicklist)); delete [] curnick_real; nlen = 0; } |
