From b99156d6d6886783a777d0801d519116502d3cd9 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 18 Jan 2006 21:58:53 +0000 Subject: Removed all strncpy() calls and replaced with strlcpy() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2818 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_antibottler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_antibottler.cpp') diff --git a/src/modules/m_antibottler.cpp b/src/modules/m_antibottler.cpp index 7d7f68084..3c0f4e67b 100644 --- a/src/modules/m_antibottler.cpp +++ b/src/modules/m_antibottler.cpp @@ -53,7 +53,7 @@ class ModuleAntiBottler : public Module if (inbound) { char data[MAXBUF]; - strncpy(data,raw.c_str(),MAXBUF); + strlcpy(data,raw.c_str(),MAXBUF); bool not_bottler = false; if (!strncmp(data,"user ",5)) { -- cgit v1.2.3