summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--numeric.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1c5030162f..5b7e030a16 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/numeric.c b/numeric.c
index 13466d7899..e77c09faaf 100644
--- a/numeric.c
+++ b/numeric.c
@@ -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;