summaryrefslogtreecommitdiff
path: root/json_pointer.c
diff options
context:
space:
mode:
Diffstat (limited to 'json_pointer.c')
-rw-r--r--json_pointer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/json_pointer.c b/json_pointer.c
index 3648f8d..380d6e5 100644
--- a/json_pointer.c
+++ b/json_pointer.c
@@ -33,7 +33,7 @@ static void string_replace_all_occurrences_with_char(char *s, const char *occur,
*p = repl_char;
p++;
slen -= skip;
- memcpy(p, (p + skip), slen - (p - s) + 1); /* includes null char too */
+ memmove(p, (p + skip), slen - (p - s) + 1); /* includes null char too */
}
}