null+****@clear*****
null+****@clear*****
2012年 6月 4日 (月) 14:39:23 JST
Ryo Onodera 2012-06-04 14:39:23 +0900 (Mon, 04 Jun 2012) New Revision: c03a9b6cbc21ac3a97da899a51eaf5719145c1b0 Log: Correct format string for loc_conf->database 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-06-04 14:32:08 +0900 (7ddc71b) +++ src/nginx-module/ngx_http_groonga_module.c 2012-06-04 14:39:23 +0900 (179ad54) @@ -92,7 +92,7 @@ ngx_http_groonga_handler(ngx_http_request_t *r) ngx_http_groonga_loc_conf_t *loc_conf; loc_conf = ngx_http_get_module_loc_conf(r, ngx_http_groonga_module); - printf("database: %*s\n", (int)loc_conf->database.len, loc_conf->database.data); + printf("database: %.*s\n", (int)loc_conf->database.len, loc_conf->database.data); printf("version: %s\n", grn_get_version()); /* we response to 'GET' and 'HEAD' requests only */