mirror of
https://github.com/curl/curl.git
synced 2026-07-23 23:47:15 +03:00
parent
db02e0e980
commit
307b7543ea
19 changed files with 26 additions and 26 deletions
|
|
@ -47,7 +47,7 @@ int test(char *URL)
|
|||
return 1;
|
||||
}
|
||||
|
||||
/* make it a zero terminated C string with just As */
|
||||
/* make it a null-terminated C string with just As */
|
||||
memset(buffer, 'A', MAX_INPUT_LENGTH + 1);
|
||||
buffer[MAX_INPUT_LENGTH + 1] = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ static struct Curl_addrinfo *fake_ai(void)
|
|||
{
|
||||
static struct Curl_addrinfo *ai;
|
||||
static const char dummy[]="dummy";
|
||||
size_t namelen = sizeof(dummy); /* including the zero terminator */
|
||||
size_t namelen = sizeof(dummy); /* including the null-terminator */
|
||||
|
||||
ai = calloc(1, sizeof(struct Curl_addrinfo) + sizeof(struct sockaddr_in) +
|
||||
namelen);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue