From 07c6a61fed68579b8f9875cab039704b086043a2 Mon Sep 17 00:00:00 2001 From: Tim Cava Date: Sat, 21 Sep 2013 05:12:43 +0000 Subject: [PATCH] Use strlcpy, rather than strmcpy, in extract(). git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@375 13b04d17-f746-0410-82c6-800466cd88b0 --- source/words.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/words.c b/source/words.c index 53bb90a..f21d1dc 100644 --- a/source/words.c +++ b/source/words.c @@ -335,7 +335,7 @@ extern char *BX_extract(char *start, int firstword, int lastword) return m_strdup(empty_string); booya = new_malloc(mark2 - mark + 1); - strmcpy(booya, mark, (mark2 - mark)); + strlcpy(booya, mark, mark2 - mark + 1); #if 0 malloc_strcpy(&booya, empty_string); else