diff options
Diffstat (limited to 'lib/libterm/tgoto.c')
-rw-r--r-- | lib/libterm/tgoto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libterm/tgoto.c b/lib/libterm/tgoto.c index a859ce165d4..d678c06724a 100644 --- a/lib/libterm/tgoto.c +++ b/lib/libterm/tgoto.c @@ -210,6 +210,6 @@ setwhich: goto toohard; } } - strcpy(dp, added); + strncpy(dp, added, sizeof (result) - (dp - result) - 1); return (result); } |