summaryrefslogtreecommitdiff
path: root/lib/libcurses
diff options
context:
space:
mode:
authorwiz <wiz@NetBSD.org>2015-05-28 06:28:37 +0000
committerwiz <wiz@NetBSD.org>2015-05-28 06:28:37 +0000
commit84bbcce4e71dd726c066473a9083757bb7335d76 (patch)
tree522c7d28fa3533d323257d7188506d66d50c9edf /lib/libcurses
parent4643985d41af4f3ba9ac9fcd84ce52a318058d57 (diff)
Fix quoting in macro.
Needed by dialog-1.2-20150513.
Diffstat (limited to 'lib/libcurses')
-rw-r--r--lib/libcurses/unctrl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcurses/unctrl.h b/lib/libcurses/unctrl.h
index f8a04cf8093..bdeed619eca 100644
--- a/lib/libcurses/unctrl.h
+++ b/lib/libcurses/unctrl.h
@@ -1,4 +1,4 @@
-/* $NetBSD: unctrl.h,v 1.4 2007/05/28 15:01:58 blymn Exp $ */
+/* $NetBSD: unctrl.h,v 1.5 2015/05/28 06:28:37 wiz Exp $ */
/*
* Copyright (c) 1982, 1993
@@ -53,6 +53,6 @@ __END_DECLS
#define unctrllen(c) __unctrllen[((unsigned char)c) & 0xff]
#ifdef HAVE_WCHAR
-#define wunctrl(wc) __wunctrl[( int )(wc->vals[ 0 ]) & 0xff]
+#define wunctrl(wc) __wunctrl[( int )((wc)->vals[ 0 ]) & 0xff]
#endif /* HAVE_WCHAR */
#endif /* _UNCTRL_H_ */