summaryrefslogtreecommitdiff
path: root/ext/curses/curses.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/curses/curses.c')
-rw-r--r--ext/curses/curses.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/curses/curses.c b/ext/curses/curses.c
index 4a8c46f483..b6dfbb0039 100644
--- a/ext/curses/curses.c
+++ b/ext/curses/curses.c
@@ -347,7 +347,7 @@ curses_addstr(obj, str)
VALUE str;
{
if (!NIL_P(str)) {
- addstr(STR2CSTR(str));
+ addstr(StringValuePtr(str));
}
return Qnil;
}
@@ -711,7 +711,7 @@ window_addstr(obj, str)
struct windata *winp;
GetWINDOW(obj, winp);
- waddstr(winp->window, STR2CSTR(str));
+ waddstr(winp->window, StringValuePtr(str));
}
return Qnil;
}