Kouhei Sutou
null+****@clear*****
Sat Nov 28 14:42:03 JST 2015
Kouhei Sutou 2015-11-28 14:42:03 +0900 (Sat, 28 Nov 2015) New Revision: 7056181fd5f66b82bc8737ffb6e4fae4103b793a https://github.com/groonga/groonga/commit/7056181fd5f66b82bc8737ffb6e4fae4103b793a Message: Use format string Modified files: lib/mrb.c Modified: lib/mrb.c (+2 -5) =================================================================== --- lib/mrb.c 2015-11-28 14:03:48 +0900 (9bbbab4) +++ lib/mrb.c 2015-11-28 14:42:03 +0900 (f96a861) @@ -159,12 +159,9 @@ grn_mrb_load(grn_ctx *ctx, const char *path) file = grn_fopen(expanded_path, "r"); if (!file) { - char message[BUFFER_SIZE]; mrb_value exception; - grn_snprintf(message, BUFFER_SIZE, BUFFER_SIZE, - "fopen: failed to open mruby script file: <%s>", - expanded_path); - SERR(message); + SERR("fopen: failed to open mruby script file: <%s>", + expanded_path); exception = mrb_exc_new(mrb, E_LOAD_ERROR, ctx->errbuf, strlen(ctx->errbuf)); mrb->exc = mrb_obj_ptr(exception); -------------- next part -------------- HTML����������������������������... 下载