projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.0'.
[unix-history]
/
lib
/
libcurses
/
addstr.c
diff --git
a/lib/libcurses/addstr.c
b/lib/libcurses/addstr.c
index
0d44267
..
025fd43
100644
(file)
--- a/
lib/libcurses/addstr.c
+++ b/
lib/libcurses/addstr.c
@@
-43,10
+43,17
@@
static char sccsid[] = "@(#)addstr.c 5.5 (Berkeley) 6/1/90";
*/
waddstr(win,str)
reg WINDOW *win;
*/
waddstr(win,str)
reg WINDOW *win;
-
reg char
*str;
+
char
*str;
{
{
+ chtype c;
+ reg char *s;
# ifdef DEBUG
fprintf(outf, "WADDSTR(\"%s\")\n", str);
# endif
# ifdef DEBUG
fprintf(outf, "WADDSTR(\"%s\")\n", str);
# endif
- return waddbytes(win, str, strlen(str));
+ for (s = str; *s;) {
+ c = (unsigned char) *s++;
+ if (_waddbytes(win, &c, 1) == ERR)
+ return ERR;
+ }
+ return OK;
}
}