From 41e52c7cf54c974d9f9b9ff536ed689902fbcdb5 Mon Sep 17 00:00:00 2001 From: Tim Cava Date: Sat, 17 Aug 2013 09:07:32 +0000 Subject: [PATCH] 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 --- source/misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/misc.c b/source/misc.c index ab99f94..aa32530 100644 --- a/source/misc.c +++ b/source/misc.c @@ -4026,9 +4026,9 @@ char *newusername = NULL; #endif fclose(outfile); #endif - strmcpy(username, newusername, NAME_LEN); + strlcpy(username, newusername, sizeof username); if (subargs && *subargs) - strmcpy(realname, subargs, REALNAME_LEN); + strlcpy(realname, subargs, sizeof realname); #ifdef IDENT_FAKE new_free(&p); new_free(&q); #endif