[Groonga-commit] pgroonga/pgroonga at 9277159 [master] pgroonga_tuple_is_alive(): fix name end position

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Sun Nov 20 23:35:58 JST 2016


Kouhei Sutou	2016-11-20 23:35:58 +0900 (Sun, 20 Nov 2016)

  New Revision: 9277159bf6bdf5cb01c03dbb98257f74a4791a0d
  https://github.com/pgroonga/pgroonga/commit/9277159bf6bdf5cb01c03dbb98257f74a4791a0d

  Message:
    pgroonga_tuple_is_alive(): fix name end position

  Modified files:
    src/pgrn_groonga_tuple_is_alive.c

  Modified: src/pgrn_groonga_tuple_is_alive.c (+1 -1)
===================================================================
--- src/pgrn_groonga_tuple_is_alive.c    2016-11-17 09:34:45 +0900 (38fb161)
+++ src/pgrn_groonga_tuple_is_alive.c    2016-11-20 23:35:58 +0900 (4690af2)
@@ -17,7 +17,7 @@ sources_table_to_file_node_id(grn_ctx *ctx, grn_obj *table)
 	int name_size;
 
 	name_size = grn_obj_name(ctx, table, name, GRN_TABLE_MAX_KEY_SIZE);
-	name_end = name + name_size;
+	name_end = name + name_size - 1;
 	return strtol(name + PGrnSourcesTableNamePrefixLength, &name_end, 10);
 }
 
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る