Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 10f18a3c81c86525b16e984e86b57700 > files > 4

nc-1.100-2.fc14.src.rpm

diff --git a/socks.c b/socks.c
index c71453b..def5084 100644
--- a/socks.c
+++ b/socks.c
@@ -231,12 +231,12 @@ socks_connect(const char *host, const char *port,
 		case SOCKS_IPV4:
 			cnt = atomicio(read, proxyfd, buf + 4, 6);
 			if (cnt != 6)
-				err(1, "read failed (%d/6)", cnt);
+				err(1, "read failed (%zd/6)", cnt);
 			break;
 		case SOCKS_IPV6:
 			cnt = atomicio(read, proxyfd, buf + 4, 18);
 			if (cnt != 18)
-				err(1, "read failed (%d/18)", cnt);
+				err(1, "read failed (%zd/18)", cnt);
 			break;
 		default:
 			errx(1, "connection failed, unsupported address type");