From 22a4c1d9fb29a66f27e86ef61febebe12f5cfb0e Mon Sep 17 00:00:00 2001 From: Tim Cava Date: Sun, 20 Oct 2013 18:38:44 +0000 Subject: [PATCH] Use strlcat, rather than strmcat, in tab_completion(). git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@402 13b04d17-f746-0410-82c6-800466cd88b0 --- source/input.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/input.c b/source/input.c index eb71a2d..db6734e 100644 --- a/source/input.c +++ b/source/input.c @@ -2754,8 +2754,8 @@ do_more_tab: q++; else q = n; - strmcat(buffer, q, BIG_BUFFER_SIZE); - strmcat(buffer, space, BIG_BUFFER_SIZE); + strlcat(buffer, q, sizeof buffer); + strlcat(buffer, space, sizeof buffer); if (++count == 4) { put_it("%s", convert_output_format(fget_string_var(FORMAT_COMPLETE_FSET),"%s", buffer)); @@ -2778,8 +2778,8 @@ do_more_tab: count = 0; while (n && *n) { - strmcat(buffer, n, BIG_BUFFER_SIZE); - strmcat(buffer, space, BIG_BUFFER_SIZE); + strlcat(buffer, n, sizeof buffer); + strlcat(buffer, space, sizeof buffer); if (++count == 4) { put_it("%s", convert_output_format(fget_string_var(FORMAT_COMPLETE_FSET),"%s", buffer));