null+****@clear*****
null+****@clear*****
2012年 6月 25日 (月) 17:01:27 JST
Daijiro MORI 2012-06-25 17:01:27 +0900 (Mon, 25 Jun 2012) New Revision: 029acd038b00f9cc3647fb162ab41f164ff3d178 https://github.com/groonga/groonga/commit/029acd038b00f9cc3647fb162ab41f164ff3d178 Log: suggest: fixe char pointer to array. Modified files: plugins/suggest/suggest.c Modified: plugins/suggest/suggest.c (+3 -3) =================================================================== --- plugins/suggest/suggest.c 2012-06-25 16:38:25 +0900 (c674dcd) +++ plugins/suggest/suggest.c 2012-06-25 17:01:27 +0900 (3d7e1fa) @@ -97,7 +97,7 @@ grn_parse_suggest_types(grn_obj *text) continue; } { - const char *string = "complete"; + const char string[] = "complete"; size_t length = sizeof(string) - 1; if (nptr + length <= end && memcmp(nptr, string, length) == 0) { types |= COMPLETE; @@ -106,7 +106,7 @@ grn_parse_suggest_types(grn_obj *text) } } { - const char *string = "correct"; + const char string[] = "correct"; size_t length = sizeof(string) - 1; if (nptr + length <= end && memcmp(nptr, string, length) == 0) { types |= CORRECT; @@ -115,7 +115,7 @@ grn_parse_suggest_types(grn_obj *text) } } { - const char *string = "suggest"; + const char string[] = "suggest"; size_t length = sizeof(string) - 1; if (nptr + length <= end && memcmp(nptr, string, length) == 0) { types |= SUGGEST; -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B... Download