diff options
author | ache <ache@FreeBSD.org> | 1994-12-02 06:40:24 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-12-02 06:40:24 +0000 |
commit | da3bc85e1374c51c5dced6baacf60288a5a3ea40 (patch) | |
tree | 0beef683196d6d2f76165d3756c20ac09c0ee20b /lib/libncurses/lib_addstr.c | |
parent | d856190a55e1ac4bbc1e389083c70c3a9c37746e (diff) | |
download | FreeBSD-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.c | 10 |
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; |