summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-21 08:12:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-21 08:12:14 +0000
commitde1f1c57921e7da8bb97b79f428797c6281b3e20 (patch)
tree0b34f781b46812997e3d34229599434729286fa3 /parse.y
parent09205f96104c61186751af2bbb01139b98dfbce4 (diff)
downloadruby-de1f1c57921e7da8bb97b79f428797c6281b3e20.tar.gz
ruby-de1f1c57921e7da8bb97b79f428797c6281b3e20.tar.xz
ruby-de1f1c57921e7da8bb97b79f428797c6281b3e20.zip
* parse.y (rb_intern2): name may not be NUL-terminated.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 56df203b8..70c57ac79 100644
--- a/parse.y
+++ b/parse.y
@@ -8420,8 +8420,8 @@ rb_symname_p(const char *name)
ID
rb_intern2(const char *name, long len)
{
- const char *m = name;
VALUE str = rb_str_new(name, len);
+ const char *m = RSTRING_PTR(str);
ID id;
int last;