Fix: memcpy used on potentially overlapping regions
[lttng-tools.git] / src / common / utils.c
index d6c67bb0f368bac63699b85c05dc399d8d292a08..2f587bc7c49f11cfb03bdbbc59149c9994d9bd17 100644 (file)
@@ -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;
        }
 
This page took 0.023889 seconds and 4 git commands to generate.