diff options
author | Roland McGrath <roland@gnu.org> | 2003-03-05 03:02:26 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2003-03-05 03:02:26 +0000 |
commit | 5461545a652e44c9b20d097dfebe332eb6bf007f (patch) | |
tree | 3ae8a112339723a9e71771e0e623a9345d9fcd16 /posix/confstr.c | |
parent | 0de28d5c71a3b58857642b3d5d804a790d9f6981 (diff) | |
download | glibc-5461545a652e44c9b20d097dfebe332eb6bf007f.zip glibc-5461545a652e44c9b20d097dfebe332eb6bf007f.tar.gz glibc-5461545a652e44c9b20d097dfebe332eb6bf007f.tar.bz2 |
2003-03-04 Roland McGrath <roland@redhat.com>
* 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>.
Diffstat (limited to 'posix/confstr.c')
-rw-r--r-- | posix/confstr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/posix/confstr.c b/posix/confstr.c index bc3c8b8..212ec72 100644 --- a/posix/confstr.c +++ b/posix/confstr.c @@ -143,12 +143,13 @@ confstr (name, buf, len) 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. */ |