From be020d6c05157df3d1d3a35abf7dce727a6d5dac Mon Sep 17 00:00:00 2001 From: ttate Date: Thu, 29 Nov 2001 23:59:15 +0000 Subject: [PATCH] bug fix for getnstr() and wgetnstr() git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/curses/curses.c | 4 ++-- 1 file 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);