diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-04-15 07:05:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-04-15 07:05:15 +0000 |
commit | 5387d43174a63a9e0eca9472b7c3c4f2f84d8842 (patch) | |
tree | 9141d0a85447fd71897755a7b0cf096f2fda331f | |
parent | 38caa42b73cf6369615bda975d8b7da17f866ac1 (diff) | |
download | ruby-5387d43174a63a9e0eca9472b7c3c4f2f84d8842.tar.gz ruby-5387d43174a63a9e0eca9472b7c3c4f2f84d8842.tar.xz ruby-5387d43174a63a9e0eca9472b7c3c4f2f84d8842.zip |
* numeric.c (rb_fix2str): buffer was insufficient.
(ruby-bugs-ja:PR#431)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | numeric.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Tue Apr 15 16:05:11 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net> + + * numeric.c (rb_fix2str): buffer was insufficient. + (ruby-bugs-ja:PR#431) + Mon Apr 14 19:45:56 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net> * file.c (file_expand_path): root must follow buf when @@ -1179,7 +1179,7 @@ rb_fix2str(x, base) int base; { extern const char ruby_digitmap[]; - char buf[SIZEOF_LONG*CHAR_BIT/2 + 2], *b = buf + sizeof buf; + char buf[SIZEOF_LONG*CHAR_BIT + 2], *b = buf + sizeof buf; long val = FIX2LONG(x); int neg = 0; |