Use strlcpy, rather than strmcpy, in ov_server().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@349 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -286,7 +286,7 @@ char *ov_server(int server)
|
|||||||
string = get_server_name(server);
|
string = get_server_name(server);
|
||||||
if (!string || !*string)
|
if (!string || !*string)
|
||||||
return empty_string;
|
return empty_string;
|
||||||
strmcpy(tmpstr, string, 60);
|
strlcpy(tmpstr, string, sizeof tmpstr);
|
||||||
if (!(c = strrchr(tmpstr,'.')))
|
if (!(c = strrchr(tmpstr,'.')))
|
||||||
return(string);
|
return(string);
|
||||||
*c = 0;
|
*c = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user