summaryrefslogtreecommitdiff
path: root/ext/psych/psych_yaml_tree.c
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-31 07:24:29 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-31 07:24:29 +0000
commit865decb508e89960382fc41d239be3e42545b68a (patch)
treebff7bfa5153a329740cebc1ff600ddea7cbeaaed /ext/psych/psych_yaml_tree.c
parentbd46dad47fd1e7a8bc7bacdcd608ae00dcb7efa2 (diff)
null byte at Psych::Emitter.
Check null byte. Patched by tommy (Masahiro Tomita). [Bug #13993][ruby-dev:50285] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/psych/psych_yaml_tree.c')
-rw-r--r--ext/psych/psych_yaml_tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/psych/psych_yaml_tree.c b/ext/psych/psych_yaml_tree.c
index bcf24d20706..7aca9114c9e 100644
--- a/ext/psych/psych_yaml_tree.c
+++ b/ext/psych/psych_yaml_tree.c
@@ -9,7 +9,7 @@ VALUE cPsychVisitorsYamlTree;
*/
static VALUE private_iv_get(VALUE self, VALUE target, VALUE prop)
{
- return rb_attr_get(target, rb_intern(StringValuePtr(prop)));
+ return rb_attr_get(target, rb_intern(StringValueCStr(prop)));
}
void Init_psych_yaml_tree(void)