1
0
Fork 0
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:
Gerhard Rieger 2014-01-19 16:22:11 +01:00
parent 520e84aba7
commit 2e17542be7
2 changed files with 3 additions and 2 deletions

View file

@ -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: