mirror of
https://repo.or.cz/socat.git
synced 2025-07-29 13:42:58 +00:00
Red Hat issue 1022062: strcpy misuse in xiosetsockaddrenv_ip4()
This commit is contained in:
parent
520e84aba7
commit
2e17542be7
2 changed files with 3 additions and 2 deletions
|
@ -108,8 +108,7 @@ xiosetsockaddrenv_ip4(int idx, char *namebuff, size_t namelen,
|
|||
switch (idx) {
|
||||
case 0:
|
||||
strcpy(namebuff, "ADDR");
|
||||
strcpy(valuebuff,
|
||||
inet4addr_info(ntohl(sa->sin_addr.s_addr), valuebuff, valuelen));
|
||||
inet4addr_info(ntohl(sa->sin_addr.s_addr), valuebuff, valuelen);
|
||||
switch (ipproto) {
|
||||
case IPPROTO_TCP:
|
||||
case IPPROTO_UDP:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue