X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Futils.c;h=2f587bc7c49f11cfb03bdbbc59149c9994d9bd17;hb=978644d78122d6ece6f98f2ae3f365aa3e8cb929;hp=d6c67bb0f368bac63699b85c05dc399d8d292a08;hpb=e8d3e76f29badb889f96a7203d51372fed60714c;p=lttng-tools.git diff --git a/src/common/utils.c b/src/common/utils.c index d6c67bb0f..2f587bc7c 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -294,7 +294,7 @@ int expand_double_slashes_dot_and_dotdot(char *path) * Copy the current token which is neither a '.' nor a '..'. */ path[expanded_path_len++] = '/'; - memcpy(&path[expanded_path_len], curr_char, curr_token_len); + memmove(&path[expanded_path_len], curr_char, curr_token_len); expanded_path_len += curr_token_len; }