Skip to content

Commit

Permalink
if2ip: make the buf_size arg a size_t
Browse files Browse the repository at this point in the history
sizes should be size_t

Ref: curl#13489
Closes curl#13505
  • Loading branch information
bagder committed Apr 30, 2024
1 parent 3583ed8 commit 0199104
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/if2ip.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ if2ip_result_t Curl_if2ip(int af,
unsigned int local_scope_id,
#endif
const char *interf,
char *buf, int buf_size)
char *buf, size_t buf_size)
{
struct ifaddrs *iface, *head;
if2ip_result_t res = IF2IP_NOT_FOUND;
Expand Down Expand Up @@ -187,7 +187,7 @@ if2ip_result_t Curl_if2ip(int af,
unsigned int local_scope_id,
#endif
const char *interf,
char *buf, int buf_size)
char *buf, size_t buf_size)
{
struct ifreq req;
struct in_addr in;
Expand Down Expand Up @@ -242,7 +242,7 @@ if2ip_result_t Curl_if2ip(int af,
unsigned int local_scope_id,
#endif
const char *interf,
char *buf, int buf_size)
char *buf, size_t buf_size)
{
(void) af;
#ifdef USE_IPV6
Expand Down
2 changes: 1 addition & 1 deletion lib/if2ip.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if2ip_result_t Curl_if2ip(int af,
unsigned int local_scope_id,
#endif
const char *interf,
char *buf, int buf_size);
char *buf, size_t buf_size);

#ifdef __INTERIX

Expand Down

0 comments on commit 0199104

Please sign in to comment.