diff options
author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-16 09:39:54 +0000 |
---|---|---|
committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-16 09:39:54 +0000 |
commit | d238fd1322f6ef19208666f9fbb76533bbf56070 (patch) | |
tree | d447f5c6112e09642ce5b20971d5ac03e768fb23 | |
parent | 832b1e88f5845b461a0cd48db8d7ecd940581193 (diff) |
* ext/openssl/ossl.c (ossl_raise): refine message format.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 22 | ||||
-rw-r--r-- | ext/openssl/ossl.c | 3 |
2 files changed, 24 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Thu Dec 16 18:36:52 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 @@ -44,6 +48,24 @@ Wed Dec 15 18:48:42 2004 Shugo Maeda <shugo@ruby-lang.org> * ext/curses/curses.c (window_subwin): call NUM2INT() before GetWINDOW(). (backported from CVS HEAD) +Wed Dec 15 18:00:59 2004 GOTOU Yuuzou <gotoyuzo@notwork.org> + + * lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): should wait + for reading request till data arrive. [ruby-talk:121068] + + * lib/webrick/server.rb (WEBrick::GenericServer#start_thread): + should log about all accepted socket. [ruby-core:03962] + + * lib/webrick/accesslog.rb (WEBrick::AccessLog#setup_params): + "%%" and "%u" are supported. [webricken:135] + + * lib/webrick/httpservlet/filehandler.rb + (WEBrick::HTTPServlet::FileHandler#check_filename): + :NondisclosureName is acceptable if it is Enumerable. + + * lib/webrick/config.rb (WEBrick::Config::FileHandler): + default value of :NondisclosureName is [".ht*", "*~"]. + Wed Dec 15 17:03:50 2004 NAKAMURA Usaku <usa@ruby-lang.org> * win32/win32.[ch] (rb_w32_isatty): new function to replace MSVCRT's diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c index 133b4e30ca..41659f0e81 100644 --- a/ext/openssl/ossl.c +++ b/ext/openssl/ossl.c @@ -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); |