summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-21 10:40:20 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-21 10:40:20 +0000
commit25df75e1195fe6c9d957ef8123096275ade04467 (patch)
tree5c90201e21cd49b29fa57bed81451690775f7af6 /ext
parentc98fd7da8a7b9a1e388daf4a68e41a1d8d3d64d2 (diff)
* ext/curses/curses.c (Init_curses): use curses_version() for
Curses::VERSION. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/curses/curses.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/curses/curses.c b/ext/curses/curses.c
index 6045e31d60..eec364ba15 100644
--- a/ext/curses/curses.c
+++ b/ext/curses/curses.c
@@ -2769,7 +2769,7 @@ Init_curses(void)
rb_define_module_function(mCurses, "reset_prog_mode", curses_reset_prog_mode, 0);
#ifdef NCURSES_VERSION
- rb_define_const(mCurses, "VERSION", rb_sprintf("ncurses %s", NCURSES_VERSION));
+ rb_define_const(mCurses, "VERSION", rb_str_new2(curses_version()));
#else
rb_define_const(mCurses, "VERSION", rb_str_new2("unknown"));
#endif