From 172bb8c4095b4fc9065334c64fcb6dd05166a80c Mon Sep 17 00:00:00 2001 From: Tim Cava Date: Sat, 17 Aug 2013 05:19:50 +0000 Subject: [PATCH] Use strlcpy, rather than strmcpy, in tcl_putserv(). git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@342 13b04d17-f746-0410-82c6-800466cd88b0 --- source/tcl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/tcl.c b/source/tcl.c index fa47a2b..f1eff34 100644 --- a/source/tcl.c +++ b/source/tcl.c @@ -1154,8 +1154,7 @@ char s[BIG_BUFFER_SIZE+1],*p; BADARGS(2,2," \"text\""); - strmcpy(s,argv[1],BIG_BUFFER_SIZE-1); - s[BIG_BUFFER_SIZE-1]=0; + strlcpy(s, argv[1], sizeof s); if ((p=strchr(s,'\n'))) *p = 0; if ((p=strchr(s,'\r')))