commit b2425dcb0978e61237fd61612e3dc437b1e26534
parent 93c21520270e9b2b933c90c7f7bb7b12ac78280b
Author: hhvn <dev@hhvn.uk>
Date: Wed, 18 Aug 2021 00:05:52 +0100
finger.c: fix missing comma
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/finger.c b/finger.c
@@ -57,7 +57,7 @@ finger(char *user, char *host, char *port, int w) {
if ((sret = getaddrinfo(host, port, &hints, &ai)) != 0 || ai == NULL)
die(1, "%s%s: %s:%s\n", verbose ? "getaddrinfo(): " : "", gai_strerror(sret), host, port);
if ((sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol)) == 1)
- die(1, "%s%s: %s:%s\n", verbose ? "socket(): " : "", strerror(errno), host port);
+ die(1, "%s%s: %s:%s\n", verbose ? "socket(): " : "", strerror(errno), host, port);
if (connect(sock, ai->ai_addr, ai->ai_addrlen) == -1)
die(1, "%s%s: %s:%s\n", verbose ? "connect(): " : "", strerror(errno), host, port);