dial error: add newline - gopherproxy-c - Gopher HTTP proxy in C (CGI)
(HTM) git clone git://git.codemadness.org/gopherproxy-c
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 37d95c874eab8ad35bd95ad3381405310934cd08
(DIR) parent dbe80c7d9f93688585348abacbde2cd22c5373a9
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 14 Aug 2018 14:23:31 +0200
dial error: add newline
Diffstat:
M gopherproxy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/gopherproxy.c b/gopherproxy.c
@@ -97,7 +97,7 @@ dial(const char *host, const char *port)
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = AI_NUMERICSERV; /* numeric port only */
if ((error = getaddrinfo(host, port, &hints, &res0)))
- die(500, "%s: %s: %s:%s", __func__, gai_strerror(error), host, port);
+ die(500, "%s: %s: %s:%s\n", __func__, gai_strerror(error), host, port);
s = -1;
for (res = res0; res; res = res->ai_next) {
s = socket(res->ai_family, res->ai_socktype,