* posix/confstr.c (confstr): Correct STRING_LEN values for
_CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
break. Reported by Alexandre Julliard <julliard@winehq.com>.
case _CS_GNU_LIBC_VERSION:
string = "glibc " VERSION;
- string_len = strlen (string);
+ string_len = sizeof ("glibc " VERSION);
+ break;
case _CS_GNU_LIBPTHREAD_VERSION:
#ifdef LIBPTHREAD_VERSION
string = LIBPTHREAD_VERSION;
- string_len = strlen (string);
+ string_len = sizeof LIBPTHREAD_VERSION;
break;
#else
/* No thread library. */