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:
Tim Cava
2013-08-17 06:16:00 +00:00
parent 44c4f2baf9
commit cc8f50b187

View File

@@ -286,7 +286,7 @@ char *ov_server(int server)
string = get_server_name(server);
if (!string || !*string)
return empty_string;
strmcpy(tmpstr, string, 60);
strlcpy(tmpstr, string, sizeof tmpstr);
if (!(c = strrchr(tmpstr,'.')))
return(string);
*c = 0;