Use strlcpy, rather than strmcpy, in do_newuser().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@353 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -4026,9 +4026,9 @@ char *newusername = NULL;
|
|||||||
#endif
|
#endif
|
||||||
fclose(outfile);
|
fclose(outfile);
|
||||||
#endif
|
#endif
|
||||||
strmcpy(username, newusername, NAME_LEN);
|
strlcpy(username, newusername, sizeof username);
|
||||||
if (subargs && *subargs)
|
if (subargs && *subargs)
|
||||||
strmcpy(realname, subargs, REALNAME_LEN);
|
strlcpy(realname, subargs, sizeof realname);
|
||||||
#ifdef IDENT_FAKE
|
#ifdef IDENT_FAKE
|
||||||
new_free(&p); new_free(&q);
|
new_free(&p); new_free(&q);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user