diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-12-12 07:42:35 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-12-12 07:42:35 +0000 |
commit | 3a7020854d43c4d29ca5cd9013e3af139f378548 (patch) | |
tree | 2a73f7f17fa97d74f5580248e39f39765747d573 /sprintf.c | |
parent | 2322a131272f705139fb1e6bbcf1d85a0205e8b0 (diff) |
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sprintf.c')
-rw-r--r-- | sprintf.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -320,10 +320,7 @@ rb_f_sprintf(argc, argv) len = RSTRING(str)->len; if (flags&FPREC) { if (prec < len) { - CHECK(prec); - memcpy(&buf[blen], RSTRING(str)->ptr, prec); - blen += prec; - break; + len = prec; } } if (flags&FWIDTH) { |