diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-08 06:22:51 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-08 06:22:51 +0000 |
| commit | 42dabef207d64620e2526624114fb615a086c470 (patch) | |
| tree | 22470ff9bb6d7acaa39961f559e0f4096911604d /sprintf.c | |
| parent | 4e9b8d3f137201d3dd68a17554578a59057f3ff4 (diff) | |
| download | ruby-42dabef207d64620e2526624114fb615a086c470.tar.gz ruby-42dabef207d64620e2526624114fb615a086c470.tar.xz ruby-42dabef207d64620e2526624114fb615a086c470.zip | |
* io.c (io_fwrite): change dereference for cosmetic reason.
* sprintf.c (rb_f_sprintf): [ruby-dev:25104]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sprintf.c')
| -rw-r--r-- | sprintf.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |
