1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/openssl/ossl.c (ossl_raise): refine message format.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
gotoyuzo 2004-12-16 09:39:54 +00:00
parent a247c7715d
commit 67f4a393ba
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Thu Dec 16 18:37:08 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
* ext/openssl/ossl.c (ossl_raise): refine message format.
Thu Dec 16 16:29:44 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/sample/demos-en/widget: modify version check for

View file

@ -292,7 +292,8 @@ ossl_raise(VALUE exc, const char *fmt, ...)
else
msg = ERR_reason_error_string(e);
ERR_clear_error();
len += snprintf(buf+len, BUFSIZ-len, ": %s", msg);
fmt = len ? ": %s" : "%s";
len += snprintf(buf+len, BUFSIZ-len, fmt, msg);
}
if(len > BUFSIZ) len = strlen(buf);