Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- printw.c.~1.25.~ 2019-03-22 00:28:55.000000000 +0300
- +++ printw.c 2019-03-22 00:54:44.893990458 +0300
- @@ -118,15 +118,12 @@
- {
- WINDOW *win = cookie;
- const char *buf = vbuf;
- - size_t c;
- + int status;
- +
- + status = waddnstr(win, buf, n);
- + if (status == ERR)
- + return -1;
- - for (c = 0; c < n; c++) {
- -#ifdef DEBUG
- - __CTRACE(__CTRACE_MISC, "__winwrite: %c\n", *buf);
- -#endif
- - if (waddch(win, (chtype) (*buf++ & __CHARTEXT)) == ERR)
- - return -1;
- - }
- return (ssize_t)n;
- }
- /*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement