From e2b08a9de5530e52cee1ce86e4575f16033f0c83 Mon Sep 17 00:00:00 2001 From: "jeff.science@gmail.com" Date: Sat, 18 May 2013 21:13:35 -0500 Subject: [PATCH 2/2] Jeff Hammond: replace bcopy with memmove --- src/pm/mpd/pmitest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pm/mpd/pmitest.c b/src/pm/mpd/pmitest.c index c01b582..0ed1ad8 100644 --- a/src/pm/mpd/pmitest.c +++ b/src/pm/mpd/pmitest.c @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -146,7 +147,7 @@ int connect_to_pm( char *hostname, int portnum ) } memset( (void *)&sin, '\0', sizeof(sin) ); - bcopy( (void *)hp->h_addr, (void *)&sin.sin_addr, hp->h_length); + memmove( (void *)&sin.sin_addr, (void *)hp->h_addr, hp->h_length); sin.sin_family = hp->h_addrtype; sin.sin_port = htons( (unsigned short) portnum ); -- 1.8.2.2