[ruby-cvs:53244] nobu:r46098 (trunk): vsnprintf.c: fix string precision

nobu at ruby-lang.org nobu at ruby-lang.org
Sun May 25 11:56:36 JST 2014


nobu	2014-05-25 11:56:36 +0900 (Sun, 25 May 2014)

  New Revision: 46098

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=46098

  Log:
    vsnprintf.c: fix string precision
    
    * vsnprintf.c (BSD_vfprintf): fix string width when precision is
      given.  as the result of `memchr` is NULL or its offset from the
      start cannot exceed the size, the comparison was always false.
      [ruby-core:62737] [Bug #9861]

  Modified files:
    trunk/ChangeLog
    trunk/ext/-test-/printf/printf.c
    trunk/test/-ext-/test_printf.rb
    trunk/vsnprintf.c


More information about the ruby-cvs mailing list