libfetch: Fix -Wunterminated-string-initialization

This defaults to an error in clang HEAD, use a char-by-char
initializer instead.

Reviewed by:	emaste, jhb
MFC after:	1 week
Differential Revision: https://reviews.freebsd.org/D52532
This commit is contained in:
Alex Richardson 2025-12-16 10:08:51 -08:00
parent 4cfc7de13f
commit 79f578531f

View file

@ -135,7 +135,7 @@ static struct fetcherr socks5_errlist[] = {
};
/* End-of-Line */
static const char ENDL[2] = "\r\n";
static const char ENDL[2] = { '\r', '\n' };
/*** Error-reporting functions ***********************************************/