diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_antibottler.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_stripcolor.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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)) { diff --git a/src/modules/m_stripcolor.cpp b/src/modules/m_stripcolor.cpp index 4c4b4ad28..625b3fc1a 100644 --- a/src/modules/m_stripcolor.cpp +++ b/src/modules/m_stripcolor.cpp @@ -85,7 +85,7 @@ class ModuleStripColor : public Module { int i, a, len, remove; char sentence[MAXBUF]; - strncpy(sentence,text.c_str(),MAXBUF); + strlcpy(sentence,text.c_str(),MAXBUF); len = strlen(sentence); |