diff options
author | Jeremy Allison <jra@samba.org> | 2002-10-09 19:46:19 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-10-09 19:46:19 +0000 |
commit | 447b4a742ee0ca971828e6b46adc7b7c05b973d7 (patch) | |
tree | 40ff4c8e22336a675e67dfc95ba5b3e601aac17c /source3 | |
parent | a92bf85234edbf258ca4907aa4b83f9e717ea5ad (diff) | |
download | samba-447b4a742ee0ca971828e6b46adc7b7c05b973d7.tar.gz samba-447b4a742ee0ca971828e6b46adc7b7c05b973d7.tar.bz2 samba-447b4a742ee0ca971828e6b46adc7b7c05b973d7.zip |
Use memmove when copies can overlap. Spotted by SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
Jeremy.
(This used to be commit 71768c488e9b498e8cc77a1cfce0fab873e36068)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/web/cgi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c index 27cc932abe..c9cb78f6f1 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++; } } |