[Groonga-commit] groonga/groonga at d31c839 [master] egn: use grn_text_esc() instead of sprintf().

Back to archive index

susumu.yata null+****@clear*****
Fri Jun 19 10:00:03 JST 2015


susumu.yata	2015-06-19 10:00:03 +0900 (Fri, 19 Jun 2015)

  New Revision: d31c839b2c84f4cbd76a518c1fb28d894bcb3cdf
  https://github.com/groonga/groonga/commit/d31c839b2c84f4cbd76a518c1fb28d894bcb3cdf

  Message:
    egn: use grn_text_esc() instead of sprintf().
    
    GitHub: #350

  Modified files:
    lib/egn.cpp

  Modified: lib/egn.cpp (+1 -3)
===================================================================
--- lib/egn.cpp    2015-06-19 09:58:01 +0900 (7f8b1e2)
+++ lib/egn.cpp    2015-06-19 10:00:03 +0900 (85f124e)
@@ -3099,10 +3099,8 @@ grn_egn_select_output(grn_ctx *ctx, grn_obj *table,
               break;
             }
             case GRN_DB_TEXT: {
-              GRN_TEXT_PUTC(ctx, ctx->impl->outbuf, '"');
               grn_egn_text text = ((grn_egn_text *)&bufs[j][0])[i];
-              GRN_TEXT_PUT(ctx, ctx->impl->outbuf, text.ptr, text.size);
-              GRN_TEXT_PUTC(ctx, ctx->impl->outbuf, '"');
+              grn_text_esc(ctx, ctx->impl->outbuf, text.ptr, text.size);
               break;
             }
             case GRN_DB_WGS84_GEO_POINT: {
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index