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:
Tim Cava
2013-08-17 09:07:32 +00:00
parent 0b32d978f8
commit 41e52c7cf5

View File

@@ -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