summaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-12-23 23:41:13 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-12-25 23:42:16 +0100
commitaba01da6390894c9e7ebb6691da544bc01b6324d (patch)
treecccdc610b043e065e479eefb53a72893d0e06e64 /lib/url.c
parent78617b48e46e5934d94c155e0b4565978341bfe6 (diff)
downloadcurl-aba01da6390894c9e7ebb6691da544bc01b6324d.tar.gz
failf: remove newline from formatting strings
... as failf adds one itself. Also: add an assert() to failf() that triggers on a newline in the format string! Closes #6365
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/url.c b/lib/url.c
index a340213ad..b998c5efb 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1550,7 +1550,7 @@ CURLcode Curl_idnconvert_hostname(struct connectdata *conn,
host->name = host->encalloc;
}
else {
- failf(data, "Failed to convert %s to ACE; %s\n", host->name,
+ failf(data, "Failed to convert %s to ACE; %s", host->name,
idn2_strerror(rc));
return CURLE_URL_MALFORMAT;
}
@@ -1565,7 +1565,7 @@ CURLcode Curl_idnconvert_hostname(struct connectdata *conn,
}
else {
char buffer[STRERROR_LEN];
- failf(data, "Failed to convert %s to ACE; %s\n", host->name,
+ failf(data, "Failed to convert %s to ACE; %s", host->name,
Curl_winapi_strerror(GetLastError(), buffer, sizeof(buffer)));
return CURLE_URL_MALFORMAT;
}