Skip to content

Commit

Permalink
bug fix for getnstr() and wgetnstr()
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
ttate committed Nov 29, 2001
1 parent 23303b8 commit be020d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/curses/curses.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit be020d6

Please sign in to comment.