Commit 72ec63fb authored by Steve Kemp's avatar Steve Kemp
Browse files

Use memmove not memcpy.

This avoids undefined behaviour with overlapping ranges.
parent 4ba991d7
......@@ -238,7 +238,7 @@ void update_vhost_request( char *path )
*/
if ( stat( buffer, &statbuf) == 0 )
{
memcpy( path+5, srv+4+i, strlen(srv+5+i) );
memmove( path+5, srv+4+i, strlen(srv+5+i) );
#ifdef VHOST_DEBUG
fprintf(stderr,"mod_vhost_bytemark.c: succeeded on %s -> %s\n",buffer, path);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment