From e4e8a1358ad7baccc5974da75466bc5f16fe2b69 Mon Sep 17 00:00:00 2001 From: Tim Cava Date: Thu, 15 Aug 2013 10:41:00 +0000 Subject: [PATCH] Use strlcpy, rather than strmcpy, in show_server_map(). git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@327 13b04d17-f746-0410-82c6-800466cd88b0 --- source/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/server.c b/source/server.c index c7d0c70..abba416 100644 --- a/source/server.c +++ b/source/server.c @@ -3428,7 +3428,7 @@ void show_server_map (void) { map = tmp->next; if (!tmp->hopcount || tmp->hopcount != prevdist) - strmcpy(tmp1, convert_output_format("%K[%G$0%K]", "%d", tmp->hopcount), 79); + strlcpy(tmp1, convert_output_format("%K[%G$0%K]", "%d", tmp->hopcount), sizeof tmp1); else *tmp1 = 0; snprintf(tmp2, BIG_BUFFER_SIZE, "$G %%W$[-%d]1%%c $0 %s", tmp->hopcount*3, tmp1);