diff options
Diffstat (limited to 'package/ttcp/ttcp-0001-replace-deprecated-bcopy.patch')
-rw-r--r-- | package/ttcp/ttcp-0001-replace-deprecated-bcopy.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/package/ttcp/ttcp-0001-replace-deprecated-bcopy.patch b/package/ttcp/ttcp-0001-replace-deprecated-bcopy.patch new file mode 100644 index 0000000000..fb8ef7ff45 --- /dev/null +++ b/package/ttcp/ttcp-0001-replace-deprecated-bcopy.patch @@ -0,0 +1,15 @@ +Replace deprecated bcopy call by using memmove instead. + +Index: b/ttcp.c +=================================================================== +--- a/ttcp.c ++++ b/ttcp.c +@@ -241,7 +241,7 @@ + if ((addr=gethostbyname(host)) == NULL) + err("bad hostname"); + sinhim.sin_family = addr->h_addrtype; +- bcopy(addr->h_addr,(char*)&addr_tmp, addr->h_length); ++ memmove((char*)&addr_tmp, addr->h_addr, addr->h_length); + #if defined(cray) + sinhim.sin_addr = addr_tmp; + #else |