summaryrefslogtreecommitdiff
path: root/source3/web
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-10-09 19:47:04 +0000
committerJeremy Allison <jra@samba.org>2002-10-09 19:47:04 +0000
commit8c2a62c55566337a5cbb963ccef59e279a43af7d (patch)
tree6aad0d45d1c0b21bbf86a09e26c21dbac51d2b44 /source3/web
parent9c25d8907088ef35eef396df5a13074f445adacd (diff)
downloadsamba-8c2a62c55566337a5cbb963ccef59e279a43af7d.tar.gz
samba-8c2a62c55566337a5cbb963ccef59e279a43af7d.tar.bz2
samba-8c2a62c55566337a5cbb963ccef59e279a43af7d.zip
Use memmove when copies can overlap. Spotted by SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
Jeremy. (This used to be commit 0ab08186f419a09e15f1ab7db621d429b1a3f994)
Diffstat (limited to 'source3/web')
-rw-r--r--source3/web/cgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c
index 7415fbe3f1..684086f61e 100644
--- a/source3/web/cgi.c
+++ b/source3/web/cgi.c
@@ -77,7 +77,7 @@ static void unescape(char *buf)
*p = (c1<<4) | c2;
- memcpy(p+1, p+3, strlen(p+3)+1);
+ memmove(p+1, p+3, strlen(p+3)+1);
p++;
}
}