summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2005-03-30 07:50:00 +0000
committerfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2005-03-30 07:50:00 +0000
commit1b7fc83311f4454b782a430b2e43eebfbe8ae4d7 (patch)
treed26a59dd201ba7ae78ff38f310be2a17b7afd6e1
parente5b0f31c560d4801968e42fca33743976a7d29c4 (diff)
Fixed strcpy vs. strlcpy problem
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@934 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_helpop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp
index 00e886cb4..71b9013e4 100644
--- a/src/modules/m_helpop.cpp
+++ b/src/modules/m_helpop.cpp
@@ -94,7 +94,7 @@ bool do_helpop(char **parameters, int pcnt, userrec *src)
// FIX by brain: make the string lowercase, ConfigReader is
// case sensitive
char lower[MAXBUF];
- strcpy(lower,search,MAXBUF);
+ strlcpy(lower,search,MAXBUF);
for (int t = 0; t < strlen(lower); t++)
lower[t] = tolower(lower[t]);