ruby-changes:30908
From: akr <ko1@a...>
Date: Fri, 20 Sep 2013 14:16:21 +0900 (JST)
Subject: [ruby-changes:30908] akr:r42987 (trunk): * ext/-test-/printf/printf.c (printf_test_call): Fix an end of buffer
akr 2013-09-20 14:16:13 +0900 (Fri, 20 Sep 2013) New Revision: 42987 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42987 Log: * ext/-test-/printf/printf.c (printf_test_call): Fix an end of buffer argument. Modified files: trunk/ChangeLog trunk/ext/-test-/printf/printf.c Index: ChangeLog =================================================================== --- ChangeLog (revision 42986) +++ ChangeLog (revision 42987) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Sep 20 14:14:32 2013 Tanaka Akira <akr@f...> + + * ext/-test-/printf/printf.c (printf_test_call): Fix an end of buffer + argument. + Thu Sep 19 16:59:02 2013 Nobuyoshi Nakada <nobu@r...> * parse.y (lambda): adjust position to the beginning of the block. Index: ext/-test-/printf/printf.c =================================================================== --- ext/-test-/printf/printf.c (revision 42986) +++ ext/-test-/printf/printf.c (revision 42987) @@ -79,7 +79,7 @@ printf_test_call(int argc, VALUE *argv, https://github.com/ruby/ruby/blob/trunk/ext/-test-/printf/printf.c#L79 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/