X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Futils.c;h=7006a21581ea91f952c7d7dbe57a1095d467979e;hp=a068e410b4bf26800d38e5807a0fb06c884f70d6;hb=6f1105342bcca0c5ba8177ae134c197c19ba215f;hpb=882093eef6fdd658833928a62be5d42fc0cdcb00;ds=sidebyside diff --git a/src/common/utils.c b/src/common/utils.c index a068e410b..7006a2158 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; }