1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

bug fix for getnstr() and wgetnstr()

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ttate 2001-11-29 23:59:15 +00:00
parent 23303b8a63
commit be020d6c05

View file

@ -396,7 +396,7 @@ curses_getstr(obj)
char rtn[1024]; /* This should be big enough.. I hope */
rb_read_check(stdin);
#ifdef GETNSTR
#if defined(HAVE_GETNSTR)
getnstr(rtn,1023);
#else
getstr(rtn);
@ -1024,7 +1024,7 @@ window_getstr(obj)
GetWINDOW(obj, winp);
rb_read_check(stdin);
#ifdef WGETNSTR
#if defined(HAVE_WGETNSTR)
wgetnstr(winp->window, rtn, 1023);
#else
wgetstr(winp->window, rtn);