[Groonga-commit] groonga/groonga [master] replaced a tab with spaces. updated to explicitly add '\0' independent of grn_itoh().

Back to archive index

null+****@clear***** null+****@clear*****
2011年 12月 12日 (月) 10:39:43 JST


Susumu Yata	2011-12-12 01:39:43 +0000 (Mon, 12 Dec 2011)

  New Revision: b06b29726919818fc1fda0d6e12d475919966b86

  Log:
    replaced a tab with spaces. updated to explicitly add '\0' independent of grn_itoh().

  Modified files:
    lib/com.h
    lib/dat.cpp

  Modified: lib/com.h (+1 -1)
===================================================================
--- lib/com.h    2011-12-10 10:19:04 +0000 (500aa73)
+++ lib/com.h    2011-12-12 01:39:43 +0000 (9bf4348)
@@ -34,7 +34,7 @@
 #include <netdb.h>
 #endif /* HAVE_NETDB_H */
 
-#ifdef	__cplusplus
+#ifdef __cplusplus
 extern "C" {
 #endif
 

  Modified: lib/dat.cpp (+1 -0)
===================================================================
--- lib/dat.cpp    2011-12-10 10:19:04 +0000 (57fd615)
+++ lib/dat.cpp    2011-12-12 01:39:43 +0000 (a5bfea7)
@@ -129,6 +129,7 @@ grn_dat_generate_trie_path(const char *base_path, char *trie_path, uint32_t file
   std::memcpy(trie_path, base_path, len);
   trie_path[len] = '.';
   grn_itoh(file_id % (1U << (4 * FILE_ID_LENGTH)), trie_path + len + 1, FILE_ID_LENGTH);
+  trie_path[len + 1 + FILE_ID_LENGTH] = '\0';
 }
 
 bool




Groonga-commit メーリングリストの案内
Back to archive index