mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:41:41 +03:00
unit3205: drop NOLINT
In favor or a small code change the silences the clang-tidy warning.
Follow-up to b1f853a384 #20731
Closes #20820
This commit is contained in:
parent
0742fd5c80
commit
3a2fdeb5af
1 changed files with 2 additions and 4 deletions
|
|
@ -562,13 +562,11 @@ static CURLcode test_unit3205(const char *arg)
|
|||
if(test->id >= 0x0011 && test->id < 0x0017) {
|
||||
if(expect && memcmp(expect, "EDH-", 4) == 0) {
|
||||
curlx_strcopy(alt, sizeof(alt), expect, strlen(expect));
|
||||
/* NOLINTNEXTLINE(bugprone-not-null-terminated-result) */
|
||||
expect = (const char *)memcpy(alt, "DHE-", 4);
|
||||
expect = (const char *)memcpy(alt, "DHE-", sizeof("DHE-") - 1);
|
||||
}
|
||||
if(expect && memcmp(expect + 4, "EDH-", 4) == 0) {
|
||||
curlx_strcopy(alt, sizeof(alt), expect, strlen(expect));
|
||||
/* NOLINTNEXTLINE(bugprone-not-null-terminated-result) */
|
||||
expect = (const char *)memcpy(alt + 4, "DHE-", 4) - 4;
|
||||
expect = (const char *)memcpy(alt + 4, "DHE-", sizeof("DHE-") - 1) - 4;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue