diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd_user.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_user.cpp b/src/cmd_user.cpp index 67b7c9492..23139c13f 100644 --- a/src/cmd_user.cpp +++ b/src/cmd_user.cpp @@ -41,7 +41,7 @@ void cmd_user::Handle (const char** parameters, int pcnt, userrec *user) /* XXX - Should this IDENTMAX + 1 be IDENTMAX - 1? Ok, users.h has it defined as * char ident[IDENTMAX+2]; - WTF? */ - snprintf(user->ident, IDENTMAX+1, "~%s", parameters[0]); + strlcpy(user->ident, parameters[0], IDENTMAX); strlcpy(user->fullname,parameters[3],MAXGECOS); user->registered = (user->registered | REG_USER); } |