Applied patch from Larry Doolittle to remove some strlen calls, and add one
[oweals/busybox.git] / tftp.c
diff --git a/tftp.c b/tftp.c
index 309df36b301d1a7b88a82cd278b1e0897060d1d1..466851c1b33748b88f8b604f6c6171e3edccfdf7 100644 (file)
--- a/tftp.c
+++ b/tftp.c
@@ -116,7 +116,7 @@ static inline int tftp(int cmd, struct hostent *host,
        len = sizeof(sa);
 
        memset(&sa, 0, len);
-       bind(socketfd, &sa, len);
+       bind(socketfd, (struct sockaddr *)&sa, len);
 
        sa.sin_family = host->h_addrtype;
        sa.sin_port = htons(port);