mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-26 23:59:41 +08:00
Replace strcpy with memmove for overlapping regions
This commit is contained in:
1 parent
cb6a4166b7
commit
6387bed4f2
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -149,7 +149,7 @@ static void logurl(struct clientparam * param, char * buf, char * req, int ftp){
|
||||
sb = strchr(buf, '\r');
|
||||
if(sb)*sb = 0;
|
||||
if(ftp && (se = strchr(buf + 10, ':')) && (sb = strchr(se, '@')) ) {
|
||||
strcpy(se, sb);
|
||||
memmove(se, sb, strlen(sb)+1);
|
||||
}
|
||||
}
|
||||
if(param->res != 555 && param->res != 508)dolog(param, (unsigned char *)(req?buf:NULL));
|
||||
|
||||
Reference in new issue
Block a user