diff options
-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; |