Apur-phy.205 net.unix-wizards utcsrgv!utzoo!decvax!pur-ee!purdue!pur-phy!crl Thu Feb 25 14:17:06 1982 curses library fix: getstr() We have found and fixed a bug in the wgetstr() routine of curses. A semicolon between a 'while' and its statement caused a string pointer to not be incremented as characters were received from wgetch(). Before returning, the routine placed a null at *str, and thus always returned a null string. Scanw() was also affected by this bug. Here is the fix: % diff getstr.c getstr.c.old 12c12 while ((*str = wgetch(win)) != ERR && *str != '\n'); C. LaBrec pur-ee!physics:crl ----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen of http://communication.ucsd.edu/A-News/ This Usenet Oldnews Archive article may be copied and distributed freely, provided: 1. There is no money collected for the text(s) of the articles. 2. The following notice remains appended to each copy: The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.