From cc8f50b187a2002a05b626eee59ce828757d656f Mon Sep 17 00:00:00 2001 From: Tim Cava Date: Sat, 17 Aug 2013 06:16:00 +0000 Subject: [PATCH] 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 --- source/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/output.c b/source/output.c index 9c9a0ef..ddd7591 100644 --- a/source/output.c +++ b/source/output.c @@ -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;