home *** CD-ROM | disk | FTP | other *** search
/ Serving the Web / ServingTheWeb1995.disc1of1.iso / linux / slacksrce / d / libc / libc-4.6 / libc-4 / libc-linux / curses-old / curspatch < prev    next >
Encoding:
Text File  |  1992-03-22  |  489 b   |  27 lines

  1. *** printw.c.ORIG    Sat Jan 25 06:19:45 1992
  2. --- printw.c    Sat Jan 25 06:26:19 1992
  3. ***************
  4. *** 131,141 ****
  5.   #endif
  6.       va_list    ap;
  7.   {
  8. !     FILE *f;
  9. !     extern FILE *fwopen();
  10.   
  11. !     if ((f = fwopen((void *)win, _winwrite)) == NULL)
  12.           return ERR;
  13. !     (void) vfprintf(f, fmt, ap);
  14. !     return fclose(f) ? ERR : OK;
  15.   }
  16. --- 131,140 ----
  17.   #endif
  18.       va_list    ap;
  19.   {
  20. !     char buf[1024];
  21.   
  22. !     vsprintf(buf, fmt, ap);
  23. !     if (_winwrite(win, buf, strlen(buf)))
  24.           return ERR;
  25. !     return OK;
  26.   }
  27.