summaryrefslogtreecommitdiffstats
path: root/lib/libcurses/tinfo/comp_scan.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2003-03-18 16:55:54 +0000
committermillert <millert@openbsd.org>2003-03-18 16:55:54 +0000
commit9149fa9137a24429e1289bda9567cc12d988bd46 (patch)
tree9105ce28a5d8f3aa02daed6c6aff6bdc7fdaaf1e /lib/libcurses/tinfo/comp_scan.c
parentDo not .Xr yourself, you old bugger. Come on. Give us a grin. (diff)
downloadwireguard-openbsd-9149fa9137a24429e1289bda9567cc12d988bd46.tar.xz
wireguard-openbsd-9149fa9137a24429e1289bda9567cc12d988bd46.zip
Use strlcpy() / strlcat() throughout.
Diffstat (limited to 'lib/libcurses/tinfo/comp_scan.c')
-rw-r--r--lib/libcurses/tinfo/comp_scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcurses/tinfo/comp_scan.c b/lib/libcurses/tinfo/comp_scan.c
index 1b6607d8f75..a241322f188 100644
--- a/lib/libcurses/tinfo/comp_scan.c
+++ b/lib/libcurses/tinfo/comp_scan.c
@@ -766,7 +766,7 @@ next_char(void)
}
} else {
if (used != 0)
- strcat(result, "\n");
+ strlcat(result, "\n", allocated);
}
if ((bufptr = bufstart) != 0) {
used = strlen(bufptr);