From bb4dcac3c3a9efcd7c8004da5a582a87bf335b30 Mon Sep 17 00:00:00 2001 From: matz Date: Sat, 2 Aug 2003 18:05:02 +0000 Subject: * numeric.c (flo_to_s): get rid of buffer overflow. * io.c (appendline): clearerr(3) before raising exception, since exception may be captured by rescue. [ruby-talk:77794] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- numeric.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numeric.c') diff --git a/numeric.c b/numeric.c index d9278f06b..4ea6114e3 100644 --- a/numeric.c +++ b/numeric.c @@ -289,7 +289,7 @@ static VALUE flo_to_s(flt) VALUE flt; { - char buf[24]; + char buf[25]; char *fmt = "%.15g"; double value = RFLOAT(flt)->value; double avalue, d1, d2; -- cgit