libthr: fix -Wunterminated-string-initialization

Reviewed by:	jhb, emaste
MFC after:	1 week
Differential Revision: https://reviews.freebsd.org/D52528
This commit is contained in:
Alex Richardson 2025-12-16 10:04:18 -08:00
parent 802c6d5d61
commit 4cfc7de13f

View file

@ -61,7 +61,7 @@ _thread_printf(int fd, const char *fmt, ...)
void
_thread_vprintf(int fd, const char *fmt, va_list ap)
{
static const char digits[16] = "0123456789abcdef";
static const char digits[16] __nonstring = "0123456789abcdef";
char buf[20];
char *s;
unsigned long r, u;
@ -147,4 +147,3 @@ pstr(int fd, const char *s)
__sys_write(fd, s, strlen(s));
}