[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] Simply use strcpy for concatenating path

Back to archive index

HAYASHI Kentaro null+****@clear*****
Thu Oct 4 10:44:17 JST 2012


HAYASHI Kentaro	2012-06-28 10:21:40 +0900 (Thu, 28 Jun 2012)

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

  Log:
    Simply use strcpy for concatenating path

  Modified files:
    lib/mrn_path_mapper.cpp

  Modified: lib/mrn_path_mapper.cpp (+1 -2)
===================================================================
--- lib/mrn_path_mapper.cpp    2012-06-28 10:11:15 +0900 (6e8d9c2)
+++ lib/mrn_path_mapper.cpp    2012-06-28 10:21:40 +0900 (e0425a0)
@@ -50,8 +50,7 @@ namespace mrn {
 
     if (strncmp(mysql_path_, "./", 2) == 0) {
       if (path_prefix_) {
-        size_t db_path_length = strlen(db_path_);
-        strncat(db_path_, path_prefix_, MRN_MAX_PATH_SIZE - db_path_length - 1);
+        strcpy(db_path_, path_prefix_);
       }
 
       int i = 2, j = strlen(db_path_), len;
-------------- next part --------------
HTML����������������������������...
Download 



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