From 89d82d7ae0a8e5f282baf37079a20bc1987e9c97 Mon Sep 17 00:00:00 2001 From: Tim Cava Date: Sat, 17 Aug 2013 04:39:08 +0000 Subject: [PATCH] Use strlcpy, rather than strmcpy, in fix_status_buffer(). git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@332 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 cac5479..c16e9bc 100644 --- a/source/status.c +++ b/source/status.c @@ -463,7 +463,7 @@ int in_rhs = 0, Window *old = current_window; current_window = win; stuff = expand_alias(buffer, empty_string, &af, NULL); - strmcpy(buffer, stuff, BIG_BUFFER_SIZE); + strlcpy(buffer, stuff, sizeof buffer); new_free(&stuff); current_window = old; }