summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcertus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-03-02 08:40:41 +0000
committercertus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-03-02 08:40:41 +0000
commitb90dfa435af6afa7fc21a59a6d37a2d537a9ad43 (patch)
treea54f95a9d8344e6f25abd5d933667467b12c52fe /src
parentbd1c639428b4d1edf34fe68148027c5d4897e45e (diff)
# BUILD : 1.7.13 (998)
# BUGS : 445 # NOTES : Tixed possible overflow in process() git-svn-id: svn://svn.anope.org/anope/trunk@998 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@723 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c
index 8bf1ebb9d..bc2876107 100644
--- a/src/process.c
+++ b/src/process.c
@@ -211,7 +211,7 @@ void process()
/* First make a copy of the buffer so we have the original in case we
* crash - in that case, we want to know what we crashed on. */
- strscpy(buf, inbuf, 513);
+ strscpy(buf, inbuf, sizeof(buf));
doCleanBuffer((char *) buf);