[Groonga-commit] groonga/groonga [master] httpd: avoid "%" format string in error message bug

Back to archive index

null+****@clear***** null+****@clear*****
2012年 7月 25日 (水) 16:06:24 JST


Kouhei Sutou	2012-07-25 16:06:24 +0900 (Wed, 25 Jul 2012)

  New Revision: 5e4b2c25d2f1a52e726500506708d885b87f1797
  https://github.com/groonga/groonga/commit/5e4b2c25d2f1a52e726500506708d885b87f1797

  Log:
    httpd: avoid "%" format string in error message bug

  Modified files:
    src/nginx-module/ngx_http_groonga_module.c

  Modified: src/nginx-module/ngx_http_groonga_module.c (+1 -1)
===================================================================
--- src/nginx-module/ngx_http_groonga_module.c    2012-07-25 16:05:54 +0900 (0ce0b17)
+++ src/nginx-module/ngx_http_groonga_module.c    2012-07-25 16:06:24 +0900 (e8259f0)
@@ -73,7 +73,7 @@ ngx_http_groonga_context_check(ngx_log_t *log, grn_ctx *context)
   if (context->rc == GRN_SUCCESS) {
     return NGX_OK;
   } else {
-    ngx_log_error(NGX_LOG_ERR, log, 0, context->errbuf);
+    ngx_log_error(NGX_LOG_ERR, log, 0, "%s", context->errbuf);
     return NGX_HTTP_INTERNAL_SERVER_ERROR;
   }
 }
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



Groonga-commit メーリングリストの案内
Back to archive index