[Groonga-commit] groonga/groonga [master] windows: add missing "lib/" to the default plugins directory

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 2 19:05:20 JST 2013


Kouhei Sutou	2013-04-02 19:05:20 +0900 (Tue, 02 Apr 2013)

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

  Message:
    windows: add missing "lib/" to the default plugins directory

  Modified files:
    lib/plugin.c

  Modified: lib/plugin.c (+4 -2)
===================================================================
--- lib/plugin.c    2013-04-02 19:03:25 +0900 (2bda3fd)
+++ lib/plugin.c    2013-04-02 19:05:20 +0900 (8a41b7c)
@@ -310,9 +310,11 @@ grn_plugin_get_system_plugins_dir(void)
 
     base_dir = grn_win32_base_dir();
     base_dir_length = strlen(base_dir);
-    plugins_dir = malloc(base_dir_length + strlen("/") + strlen(relative_path));
+    plugins_dir = malloc(base_dir_length +
+                         strlen("/lib/") +
+                         strlen(relative_path));
     strcpy(plugins_dir, base_dir);
-    strcat(plugins_dir, "/");
+    strcat(plugins_dir, "/lib/");
     strcat(plugins_dir, relative_path);
     win32_plugins_dir = plugins_dir;
   }
-------------- next part --------------
HTML����������������������������...
Download 



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