summaryrefslogtreecommitdiff
path: root/common/key.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2013-12-08 00:04:25 +0000
committerPeter Wemm <peter@FreeBSD.org>2013-12-08 00:04:25 +0000
commit1abe484249caf1c5e462ce3110c8db09c059c6e8 (patch)
tree75943e720084af9a019fb2ca8fb605765cbf398d /common/key.c
parent44e7e21f380c105a8a76abcbb43224be8379e340 (diff)
Notes
Diffstat (limited to 'common/key.c')
-rw-r--r--common/key.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/key.c b/common/key.c
index 652b8f3eae00d..9fc20b73d940e 100644
--- a/common/key.c
+++ b/common/key.c
@@ -10,7 +10,7 @@
#include "config.h"
#ifndef lint
-static const char sccsid[] = "$Id: key.c,v 10.53 2013/03/11 01:20:53 yamt Exp $";
+static const char sccsid[] = "$Id: key.c,v 10.54 2013/11/13 12:15:27 zy Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -272,7 +272,7 @@ v_key_name(
* The code prints non-printable wide characters in 4 or 5 digits
* Unicode escape sequences, so only supports plane 0 to 15.
*/
- if (ISPRINT(ach))
+ if (CAN_PRINT(sp, ach))
goto done;
nopr: if (iscntrl(ch) && (ch < 0x20 || ch == 0x7f)) {
sp->cname[0] = '^';