1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* sprintf.c (rb_f_sprintf): [ruby-dev:25104]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2004-12-08 05:32:26 +00:00
parent 87a77c7174
commit a0b3060708
2 changed files with 5 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Wed Dec 8 14:31:36 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
* sprintf.c (rb_f_sprintf): [ruby-dev:25104]
Wed Dec 8 13:49:46 2004 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (rb_w32_pipe_exec): must close original handle

View file

@ -249,6 +249,7 @@ rb_f_sprintf(argc, argv)
fmt = GETNTHARG(0);
if (OBJ_TAINTED(fmt)) tainted = 1;
StringValue(fmt);
fmt = rb_str_new4(fmt);
p = RSTRING(fmt)->ptr;
end = p + RSTRING(fmt)->len;
blen = 0;