From 1b7fc83311f4454b782a430b2e43eebfbe8ae4d7 Mon Sep 17 00:00:00 2001 From: frostycoolslug Date: Wed, 30 Mar 2005 07:50:00 +0000 Subject: Fixed strcpy vs. strlcpy problem git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@934 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_helpop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') 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]); -- cgit v1.2.3