summaryrefslogtreecommitdiff
path: root/src/modules/m_setname.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_setname.cpp')
-rw-r--r--src/modules/m_setname.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_setname.cpp b/src/modules/m_setname.cpp
index 9ce02b37c..4cf6bb204 100644
--- a/src/modules/m_setname.cpp
+++ b/src/modules/m_setname.cpp
@@ -26,7 +26,7 @@ void handle_setname(char **parameters, int pcnt, userrec *user)
line = line + std::string(parameters[i]);
}
line = line + std::string(parameters[pcnt-1]);
- strncpy(user->fullname,line.c_str(),127);
+ Srv->ChangeGECOS(user,line);
}