diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-19 05:21:34 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-19 05:21:34 +0000 |
| commit | 62c3a35d4223c7fc9b3c588acfa26cfabc0852fc (patch) | |
| tree | 3c2743f31f19db981605eb8aa4c11799a669b5d3 | |
| parent | c7e035a262c8eb729f79b6282eecae04be5dbbe3 (diff) | |
* sprintf.c (rb_f_sprintf): fixed SEGV on win32 with "% 0e" % 1.0/0.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | sprintf.c | 2 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Mon May 19 14:20:13 2008 NAKAMURA Usaku <usa@ruby-lang.org> + + * sprintf.c (rb_f_sprintf): fixed SEGV on win32 with "% 0e" % 1.0/0.0. + Mon May 19 13:29:58 2008 NAKAMURA Usaku <usa@ruby-lang.org> * process.c (rb_f_system): set last_status when status == -1 because @@ -729,6 +729,8 @@ rb_f_sprintf(argc, argv) need = strlen(expr); if ((!isnan(fval) && fval < 0.0) || (flags & FPLUS)) need++; + else if (flags & FSPACE) + need++; if ((flags & FWIDTH) && need < width) need = width; |
