From fdddcf99bf1dffb2e8eba416bcb218ad861df68a Mon Sep 17 00:00:00 2001 From: Tim Cava Date: Sat, 17 Aug 2013 04:47:19 +0000 Subject: [PATCH] Use strlcpy, rather than strmcpy, in make_status(). git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@333 13b04d17-f746-0410-82c6-800466cd88b0 --- source/status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/status.c b/source/status.c index c16e9bc..856862c 100644 --- a/source/status.c +++ b/source/status.c @@ -776,7 +776,7 @@ void make_status(Window *win) int af = 0; str = expand_alias(buffer, empty_string, &af, NULL); - strmcpy(buffer, str, BIG_BUFFER_SIZE); + strlcpy(buffer, str, sizeof buffer); new_free(&str); }