ruby-changes:18663
From: yugui <ko1@a...>
Date: Fri, 28 Jan 2011 11:25:50 +0900 (JST)
Subject: [ruby-changes:18663] Ruby:r30688 (ruby_1_9_2): merges r30595 from trunk into ruby_1_9_2.
yugui 2011-01-28 11:25:18 +0900 (Fri, 28 Jan 2011) New Revision: 30688 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30688 Log: merges r30595 from trunk into ruby_1_9_2. -- * vsnprintf.c (cvt): set first byte of buf to NUL for the case when no bytes are written to the buf. [ruby-dev:43062] Modified files: branches/ruby_1_9_2/ChangeLog branches/ruby_1_9_2/version.h branches/ruby_1_9_2/vsnprintf.c Index: ruby_1_9_2/ChangeLog =================================================================== --- ruby_1_9_2/ChangeLog (revision 30687) +++ ruby_1_9_2/ChangeLog (revision 30688) @@ -1,3 +1,8 @@ +Wed Jan 19 02:54:04 2011 NARUSE, Yui <naruse@r...> + + * vsnprintf.c (cvt): set first byte of buf to NUL for the case when + no bytes are written to the buf. [ruby-dev:43062] + Tue Jan 18 02:46:55 2011 Aaron Patterson <aaron@t...> * ext/psych/lib/psych/visitors/json_tree.rb (visit_String): JSON Index: ruby_1_9_2/vsnprintf.c =================================================================== --- ruby_1_9_2/vsnprintf.c (revision 30687) +++ ruby_1_9_2/vsnprintf.c (revision 30688) @@ -1165,6 +1165,7 @@ else { digits = BSD__dtoa(value, mode, ndigits, decpt, &dsgn, &rve); } + buf[0] = 0; /* rve - digits may be 0 */ memcpy(buf, digits, rve - digits); xfree(digits); rve = buf + (rve - digits); Index: ruby_1_9_2/version.h =================================================================== --- ruby_1_9_2/version.h (revision 30687) +++ ruby_1_9_2/version.h (revision 30688) @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.2" -#define RUBY_PATCHLEVEL 165 +#define RUBY_PATCHLEVEL 166 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/