We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 49adf9e + 2454682 commit 40c0437Copy full SHA for 40c0437
opendkim/opendkim.c
@@ -12358,8 +12358,10 @@ mlfi_eoh(SMFICTX *ctx)
12358
12359
if (domainok)
12360
{
12361
- strlcpy((char *) dfc->mctx_domain, p,
12362
- sizeof dfc->mctx_domain);
+ // We must not use strlcpy() here since
+ // src and dst overlap.
12363
+ char* p2 = dfc->mctx_domain;
12364
+ while( (*p2++ = *p++) );
12365
break;
12366
}
12367
0 commit comments