in getcap(). Fixed getcap() to use screen->cursesi_genbuf. Thanks to Peter Bex for spotting this. This closes pr lib/26404.