Replace strcpy with memmove for overlapping regions

This commit is contained in:
Vladimir Dubrovin committed 2024-12-20 14:38:58 +03:00
1 parent cb6a4166b7
commit 6387bed4f2
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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));