diff options
author | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-11-29 23:59:15 +0000 |
---|---|---|
committer | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-11-29 23:59:15 +0000 |
commit | be020d6c05157df3d1d3a35abf7dce727a6d5dac (patch) | |
tree | fb93ad0e918ca65c82ce6df58517d2ff4ed7d0c2 /ext | |
parent | 23303b8a63df927cd81b9947dd48e1b416e2a39c (diff) | |
download | ruby-be020d6c05157df3d1d3a35abf7dce727a6d5dac.tar.gz |
bug fix for getnstr() and wgetnstr()
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/curses/curses.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/curses/curses.c b/ext/curses/curses.c index 5959445f8e..c756c47caa 100644 --- a/ext/curses/curses.c +++ b/ext/curses/curses.c @@ -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); |