summaryrefslogtreecommitdiff
path: root/src/mail.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-03-29 21:01:43 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-03-29 21:01:43 +0000
commitcb73ab9d23633a5812d45658404f17b0992394ea (patch)
treebc4678742f3cb45ac836f5feb9e7db0526aaa66b /src/mail.c
parentac90a6935af5b81ea01fa15a2847d6ab001bfb42 (diff)
Fixed bug #1144 - replaced some strcpy calls with strscpy to be safer
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2840 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/mail.c')
-rw-r--r--src/mail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mail.c b/src/mail.c
index fccad34fe..c81d7776a 100644
--- a/src/mail.c
+++ b/src/mail.c
@@ -242,7 +242,7 @@ int MailValidate(const char *email)
if (!email)
return 0;
- strcpy(copy, email);
+ strscpy(copy, email, sizeof(copy));
domain = strchr(copy, '@');
if (!domain)