null+****@clear*****
null+****@clear*****
2012年 6月 28日 (木) 10:21:40 JST
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$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...Download