diff options
Diffstat (limited to 'usr.bin/vi/cl/cl_term.c')
-rw-r--r-- | usr.bin/vi/cl/cl_term.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/vi/cl/cl_term.c b/usr.bin/vi/cl/cl_term.c index 6edaffb0bf4..a86b9924b00 100644 --- a/usr.bin/vi/cl/cl_term.c +++ b/usr.bin/vi/cl/cl_term.c @@ -221,6 +221,8 @@ cl_pfmap(sp, stype, from, flen, to, tlen) nlen = snprintf(keyname, sizeof(keyname), "function key %d", atoi(from + 1)); + if (nlen >= sizeof(keyname)) + nlen = sizeof(keyname) - 1; return (seq_set(sp, keyname, nlen, p, strlen(p), to, tlen, stype, SEQ_NOOVERWRITE | SEQ_SCREEN)); } |