X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/dacbc44ca3fc825c9e5ffa799f1a0937c1da0020..d703a4dce564ede122f5c307889e4bd0e3f3e75c:/src/tparam.c diff --git a/src/tparam.c b/src/tparam.c index c3ecfb9e3a..538f26c83b 100644 --- a/src/tparam.c +++ b/src/tparam.c @@ -1,6 +1,6 @@ /* Merge parameters into a termcap entry string. - Copyright (C) 1985, 1987, 1993, 1995, 2000-2008, 2013 Free Software - Foundation, Inc. + Copyright (C) 1985, 1987, 1993, 1995, 2000-2008, 2013-2015 Free + Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -79,7 +79,7 @@ tparam1 (const char *string, char *outstring, int len, register int tem; int *old_argp = argp; /* can move */ int *fixed_argp = argp; /* never moves */ - int explicit_param_p = 0; /* set by %p */ + bool explicit_param_p = 0; /* set by %p */ ptrdiff_t doleft = 0; ptrdiff_t doup = 0; ptrdiff_t append_len = 0; @@ -255,9 +255,9 @@ tparam1 (const char *string, char *outstring, int len, } *op = 0; while (doup-- > 0) - strcat (op, up); + op = stpcpy (op, up); while (doleft-- > 0) - strcat (op, left); + op = stpcpy (op, left); return outstring; }