diff options
| author | Alex Richardson <arichardson@FreeBSD.org> | 2025-12-16 18:08:51 +0000 |
|---|---|---|
| committer | Alex Richardson <arichardson@FreeBSD.org> | 2025-12-16 20:21:45 +0000 |
| commit | 79f578531f21aa57307cbffd858a8a89e562aa5c (patch) | |
| tree | 6c5193aa007351a7a0efcfb6aae0cfd0fb328fe7 | |
| parent | 4cfc7de13f110563463c15be99690c6fe7b8676a (diff) | |
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
| -rw-r--r-- | lib/libfetch/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c index 786d5647d993..2e1364edff04 100644 --- a/lib/libfetch/common.c +++ b/lib/libfetch/common.c @@ -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 ***********************************************/ |
