mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/-test-/printf/printf.c (printf_test_call): Fix an end of buffer
argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
831fe26dec
commit
035917adc1
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Sep 20 14:14:32 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/-test-/printf/printf.c (printf_test_call): Fix an end of buffer
|
||||
argument.
|
||||
|
||||
Thu Sep 19 16:59:02 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (lambda): adjust position to the beginning of the block.
|
||||
|
|
|
@ -79,7 +79,7 @@ printf_test_call(int argc, VALUE *argv, VALUE self)
|
|||
if (!NIL_P(v = rb_hash_aref(opt, ID2SYM(rb_intern("prec"))))) {
|
||||
*p++ = '.';
|
||||
if (FIXNUM_P(v))
|
||||
p = utoa(p, p + sizeof(format), NUM2UINT(v));
|
||||
p = utoa(p, format + sizeof(format), NUM2UINT(v));
|
||||
}
|
||||
}
|
||||
*p++ = cnv;
|
||||
|
|
Loading…
Add table
Reference in a new issue