mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
2 changed files with 6 additions and 0 deletions
|
@ -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>
|
||||
|
||||
* 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);
|
||||
vsnprintf(buf, BUFSIZ, fmt, args);
|
||||
buf[BUFSIZ - 1] = '\0';
|
||||
va_end(args);
|
||||
rb_exc_raise(rb_exc_new2(exc, buf));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue