bcopy is marked legacy in POSIX.1-2001 and should not be used. Signed-off-by: Dave Reisner <dreisner@xxxxxxxxxxxxx> --- misc-utils/logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-utils/logger.c b/misc-utils/logger.c index 19b4c47..0a935f6 100644 --- a/misc-utils/logger.c +++ b/misc-utils/logger.c @@ -96,7 +96,7 @@ udpopenlog(const char *servername, uint16_t port) { if ((fd = socket(AF_INET, SOCK_DGRAM , 0)) == -1) err(EXIT_FAILURE, _("socket")); - bcopy(serverhost->h_addr,&s_addr.sin_addr,serverhost->h_length); + memcpy(&s_addr.sin_addr, serverhost->h_addr, serverhost->h_length); s_addr.sin_family=AF_INET; s_addr.sin_port=htons(port); -- 1.7.10.2 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html