* error.c (rb_raise): workaround for some implementation of
vsnprintf. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6940597692
commit
8836a1d265
@ -1,3 +1,8 @@
|
|||||||
|
Fri Apr 18 15:26:50 2003 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* error.c (rb_raise): workaround for some implementations of
|
||||||
|
vsnprintf.
|
||||||
|
|
||||||
Fri Apr 18 01:49:18 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
Fri Apr 18 01:49:18 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
|
|
||||||
* util.c (ruby_strtod): improved conversion accuracy.
|
* util.c (ruby_strtod): improved conversion accuracy.
|
||||||
|
1
error.c
1
error.c
@ -595,6 +595,7 @@ rb_raise(exc, fmt, va_alist)
|
|||||||
|
|
||||||
va_init_list(args,fmt);
|
va_init_list(args,fmt);
|
||||||
vsnprintf(buf, BUFSIZ, fmt, args);
|
vsnprintf(buf, BUFSIZ, fmt, args);
|
||||||
|
buf[BUFSIZ - 1] = '\0';
|
||||||
va_end(args);
|
va_end(args);
|
||||||
rb_exc_raise(rb_exc_new2(exc, buf));
|
rb_exc_raise(rb_exc_new2(exc, buf));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user