summaryrefslogtreecommitdiffstats
path: root/lib/libcurses/lib_acs.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-12-14 23:15:36 +0000
committermillert <millert@openbsd.org>1997-12-14 23:15:36 +0000
commitd2ffe6bf7b0cd86fe399a2efc19fa1415cfaf318 (patch)
tree864ea84dbd1bce6237cf47ecad8ddbcf89531f33 /lib/libcurses/lib_acs.c
parentcheck the length of data in memcpy's (diff)
downloadwireguard-openbsd-d2ffe6bf7b0cd86fe399a2efc19fa1415cfaf318.tar.xz
wireguard-openbsd-d2ffe6bf7b0cd86fe399a2efc19fa1415cfaf318.zip
ncurses-4.1-971213
Diffstat (limited to 'lib/libcurses/lib_acs.c')
-rw-r--r--lib/libcurses/lib_acs.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libcurses/lib_acs.c b/lib/libcurses/lib_acs.c
index eae5d2849d2..62ce21befe0 100644
--- a/lib/libcurses/lib_acs.c
+++ b/lib/libcurses/lib_acs.c
@@ -1,5 +1,4 @@
-/* $OpenBSD: lib_acs.c,v 1.3 1997/12/03 05:21:10 millert Exp $ */
-
+/* $OpenBSD: lib_acs.c,v 1.4 1997/12/14 23:15:46 millert Exp $ */
/***************************************************************************
* COPYRIGHT NOTICE *
@@ -26,7 +25,7 @@
#include <curses.priv.h>
#include <term.h> /* ena_acs, acs_chars */
-MODULE_ID("Id: lib_acs.c,v 1.11 1997/08/15 21:44:16 Alexander.V.Lukyanov Exp $")
+MODULE_ID("Id: lib_acs.c,v 1.12 1997/12/02 20:17:46 Alexander.V.Lukyanov Exp $")
chtype acs_map[ACS_LEN];
@@ -81,7 +80,7 @@ void init_acs(void)
#endif /* ena_acs */
#ifdef acs_chars
-#define ALTCHAR(c) (TextOf(c) | A_ALTCHARSET)
+#define ALTCHAR(c) ((chtype)(((unsigned char)(c)) | A_ALTCHARSET))
if (acs_chars != NULL) {
size_t i = 0;