diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-05-23 17:12:48 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-05-23 17:12:48 -0700 |
commit | d6ff34a9673b78545c6311c8ea59e5ad5ddd7a1f (patch) | |
tree | de87d20f70e3d5494eedc8c75391acbd150f20a3 | |
parent | c73e5023a056e28543869722203d9f62d75e3949 (diff) | |
download | kcar-d6ff34a9673b78545c6311c8ea59e5ad5ddd7a1f.tar.gz |
This is required since Ruby 1.9.3dev if the size of the string doesn't change.
-rw-r--r-- | ext/kcar/kcar.rl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/kcar/kcar.rl b/ext/kcar/kcar.rl index 78437e7..e424331 100644 --- a/ext/kcar/kcar.rl +++ b/ext/kcar/kcar.rl @@ -625,6 +625,7 @@ static VALUE filter_body(VALUE self, VALUE buf, VALUE data) dlen = RSTRING_LEN(data); StringValue(buf); + rb_str_modify(buf); rb_str_resize(buf, dlen); /* we can never copy more than dlen bytes */ OBJ_TAINT(buf); /* keep weirdo $SAFE users happy */ |