Navigation Menu

Skip to content

Commit

Permalink
Simply use strcpy for concatenating path
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhys committed Jun 28, 2012
1 parent 882a122 commit c9006e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/mrn_path_mapper.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit c9006e3

Please sign in to comment.