summaryrefslogtreecommitdiff
path: root/src/modules/extra/m_pgsql.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/extra/m_pgsql.cpp')
-rw-r--r--src/modules/extra/m_pgsql.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp
index b1f6916d0..5edcfca19 100644
--- a/src/modules/extra/m_pgsql.cpp
+++ b/src/modules/extra/m_pgsql.cpp
@@ -759,9 +759,11 @@ class ModulePgSQL : public Module
: currid(0), sqlserv(this, "SQL/pgsql", SERVICE_DATA)
{
sqlsuccess = new char[strlen(SQLSUCCESS)+1];
-
strlcpy(sqlsuccess, SQLSUCCESS, strlen(SQLSUCCESS));
+ }
+ void init()
+ {
ReadConf();
ServerInstance->Modules->AddService(sqlserv);