summaryrefslogtreecommitdiffstats
path: root/lib/libncurses/lib_addstr.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-12-02 06:40:24 +0000
committerache <ache@FreeBSD.org>1994-12-02 06:40:24 +0000
commitda3bc85e1374c51c5dced6baacf60288a5a3ea40 (patch)
tree0beef683196d6d2f76165d3756c20ac09c0ee20b /lib/libncurses/lib_addstr.c
parentd856190a55e1ac4bbc1e389083c70c3a9c37746e (diff)
downloadFreeBSD-src-da3bc85e1374c51c5dced6baacf60288a5a3ea40.zip
FreeBSD-src-da3bc85e1374c51c5dced6baacf60288a5a3ea40.tar.gz
Upgrade to version 1.8.6
Diffstat (limited to 'lib/libncurses/lib_addstr.c')
-rw-r--r--lib/libncurses/lib_addstr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libncurses/lib_addstr.c b/lib/libncurses/lib_addstr.c
index 007598c..d9cb30a 100644
--- a/lib/libncurses/lib_addstr.c
+++ b/lib/libncurses/lib_addstr.c
@@ -15,21 +15,21 @@
int
waddnstr(WINDOW *win, char *str, int n)
{
- T(("waddnstr(%x,%s,%d) called", win, str, n));
+ T(("waddnstr(%x,\"%s\",%d) called", win, visbuf(str), n));
if (str == NULL)
return ERR;
if (n < 0) {
while (*str != '\0') {
- if (waddch(win, (unsigned char)*str++) == ERR)
+ if (waddch(win, (chtype)(unsigned char)*str++) == ERR)
return(ERR);
}
return OK;
}
while((n-- > 0) && (*str != '\0')) {
- if (waddch(win, (unsigned char)*str++) == ERR)
+ if (waddch(win, (chtype)(unsigned char)*str++) == ERR)
return ERR;
}
return OK;
@@ -42,14 +42,14 @@ waddchnstr(WINDOW *win, chtype *str, int n)
if (n < 0) {
while (*str) {
- if (waddch(win, *str++) == ERR)
+ if (waddch(win, (chtype)(unsigned char)*str++) == ERR)
return(ERR);
}
return OK;
}
while(n-- > 0) {
- if (waddch(win, *str++) == ERR)
+ if (waddch(win, (chtype)(unsigned char)*str++) == ERR)
return ERR;
}
return OK;
OpenPOWER on IntegriCloud