Use strlcpy, rather than strmcpy, in set_username().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@314 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -1024,9 +1024,9 @@ BUILT_IN_COMMAND(set_username)
|
|||||||
if ((blah = next_arg(args, &args)))
|
if ((blah = next_arg(args, &args)))
|
||||||
{
|
{
|
||||||
if (!strcmp(blah, "-"))
|
if (!strcmp(blah, "-"))
|
||||||
strmcpy(username, empty_string, NAME_LEN);
|
strlcpy(username, empty_string, sizeof username);
|
||||||
else
|
else
|
||||||
strmcpy(username, blah, NAME_LEN);
|
strlcpy(username, blah, sizeof username);
|
||||||
say("Username has been changed to '%s'",username);
|
say("Username has been changed to '%s'",username);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user