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:
@@ -3110,7 +3110,7 @@ int i = 0, j = 0, len;
|
|||||||
/* XXXX this doesnt belong here. im not sure where it goes, though. */
|
/* XXXX this doesnt belong here. im not sure where it goes, though. */
|
||||||
char * get_userhost (void)
|
char * get_userhost (void)
|
||||||
{
|
{
|
||||||
strmcpy(userhost, username, NAME_LEN);
|
strlcpy(userhost, username, sizeof userhost);
|
||||||
strmcat(userhost, "@", NAME_LEN);
|
strmcat(userhost, "@", NAME_LEN);
|
||||||
strmcat(userhost, hostname, NAME_LEN);
|
strmcat(userhost, hostname, NAME_LEN);
|
||||||
return userhost;
|
return userhost;
|
||||||
|
|||||||
Reference in New Issue
Block a user