summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-15 07:05:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-15 07:05:15 +0000
commit5387d43174a63a9e0eca9472b7c3c4f2f84d8842 (patch)
tree9141d0a85447fd71897755a7b0cf096f2fda331f
parent38caa42b73cf6369615bda975d8b7da17f866ac1 (diff)
downloadruby-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--ChangeLog5
-rw-r--r--numeric.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1c5030162..5b7e030a1 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 13466d789..e77c09faa 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;