summaryrefslogtreecommitdiff
path: root/sprintf.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-15 07:26:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-15 07:26:55 +0000
commit665b06ec5bf747c13ff7c5fa9b003d5ca2540709 (patch)
tree4491320d7266e2bde338e9a8dd8938e612d84243 /sprintf.c
parentbb545e213146685e0cdddb064ecc3b22139e01f9 (diff)
sprintf.c: infect
* sprintf.c (ruby__sfvextra): the result should be infected by the given strings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sprintf.c')
-rw-r--r--sprintf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sprintf.c b/sprintf.c
index 3642e21..7a4f1e5 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -1210,6 +1210,7 @@ ruby__sfvextra(rb_printf_buffer *fp, size_t valsize, void *valp, long *sz, int s
StringValueCStr(value);
RSTRING_GETMEM(value, cp, *sz);
((rb_printf_buffer_extra *)fp)->value = value;
+ OBJ_INFECT(result, value);
return cp;
}