Use strlcpy, rather than strmcpy, in get_userhost().

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@355 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Tim Cava
2013-08-17 09:18:11 +00:00
parent 94f99bfdbb
commit b80425ce7d

View File

@@ -3110,7 +3110,7 @@ int i = 0, j = 0, len;
/* XXXX this doesnt belong here. im not sure where it goes, though. */
char * get_userhost (void)
{
strmcpy(userhost, username, NAME_LEN);
strlcpy(userhost, username, sizeof userhost);
strmcat(userhost, "@", NAME_LEN);
strmcat(userhost, hostname, NAME_LEN);
return userhost;