X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Futils.c;h=5420490a76a40f1d66d504f46e545aaebba56f78;hb=8a5422a0a990db34189f2c159820e36e0ace7dd1;hp=7041a713bd7caa77e15a5dff69d688691824923f;hpb=4ff45c64c1ef980d3de6a849494d9e63b1ba2544;p=lttng-tools.git diff --git a/src/common/utils.c b/src/common/utils.c index 7041a713b..5420490a7 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -300,7 +300,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; }