[Groonga-mysql-commit] mroonga/mroonga at b315968 [master] Use MRN_MAX_PATH_SIZE

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Apr 26 17:27:32 JST 2015


Kouhei Sutou	2015-04-26 17:27:32 +0900 (Sun, 26 Apr 2015)

  New Revision: b3159687ede71523f0f0b59ba197f3dfef5d6ee7
  https://github.com/mroonga/mroonga/commit/b3159687ede71523f0f0b59ba197f3dfef5d6ee7

  Message:
    Use MRN_MAX_PATH_SIZE

  Modified files:
    lib/mrn_database_repairer.cpp

  Modified: lib/mrn_database_repairer.cpp (+2 -2)
===================================================================
--- lib/mrn_database_repairer.cpp    2015-04-26 13:58:08 +0900 (6a4a976)
+++ lib/mrn_database_repairer.cpp    2015-04-26 17:27:32 +0900 (151330c)
@@ -120,8 +120,8 @@ namespace mrn {
       DBUG_VOID_RETURN;
     }
 
-    char db_path[PATH_MAX];
-    snprintf(db_path, PATH_MAX,
+    char db_path[MRN_MAX_PATH_SIZE];
+    snprintf(db_path, MRN_MAX_PATH_SIZE,
              "%s%c%s", base_directory_, FN_LIBCHAR, base_path);
     grn_obj *db = grn_db_open(ctx_, db_path);
     if (!db) {
-------------- next part --------------
HTML����������������������������...
Download 



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