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
This commit is contained in:
@@ -2754,8 +2754,8 @@ do_more_tab:
|
|||||||
q++;
|
q++;
|
||||||
else
|
else
|
||||||
q = n;
|
q = n;
|
||||||
strmcat(buffer, q, BIG_BUFFER_SIZE);
|
strlcat(buffer, q, sizeof buffer);
|
||||||
strmcat(buffer, space, BIG_BUFFER_SIZE);
|
strlcat(buffer, space, sizeof buffer);
|
||||||
if (++count == 4)
|
if (++count == 4)
|
||||||
{
|
{
|
||||||
put_it("%s", convert_output_format(fget_string_var(FORMAT_COMPLETE_FSET),"%s", buffer));
|
put_it("%s", convert_output_format(fget_string_var(FORMAT_COMPLETE_FSET),"%s", buffer));
|
||||||
@@ -2778,8 +2778,8 @@ do_more_tab:
|
|||||||
count = 0;
|
count = 0;
|
||||||
while (n && *n)
|
while (n && *n)
|
||||||
{
|
{
|
||||||
strmcat(buffer, n, BIG_BUFFER_SIZE);
|
strlcat(buffer, n, sizeof buffer);
|
||||||
strmcat(buffer, space, BIG_BUFFER_SIZE);
|
strlcat(buffer, space, sizeof buffer);
|
||||||
if (++count == 4)
|
if (++count == 4)
|
||||||
{
|
{
|
||||||
put_it("%s", convert_output_format(fget_string_var(FORMAT_COMPLETE_FSET),"%s", buffer));
|
put_it("%s", convert_output_format(fget_string_var(FORMAT_COMPLETE_FSET),"%s", buffer));
|
||||||
|
|||||||
Reference in New Issue
Block a user