diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-02-04 00:15:46 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-02-04 00:15:46 +0000 |
commit | b8f558b7ace3a2e5e3234ac24a600cbe230da8d1 (patch) | |
tree | 2c381858eee9f96b63f69fcaa2ffbd7beeb752e9 /wcsmbs | |
parent | 05c83ef1c11d0bde1275b73083aef0f49da3825b (diff) | |
download | glibc-b8f558b7ace3a2e5e3234ac24a600cbe230da8d1.tar glibc-b8f558b7ace3a2e5e3234ac24a600cbe230da8d1.tar.gz glibc-b8f558b7ace3a2e5e3234ac24a600cbe230da8d1.tar.bz2 glibc-b8f558b7ace3a2e5e3234ac24a600cbe230da8d1.zip |
Update.glibc-2.1cvs/glibc-2_1
1999-02-04 Ulrich Drepper <drepper@cygnus.com>
* stdlib/strtoll.c: Add alias __strtoq_internal.
* stdlib/strtoull.c: Add alias __strtouq_internal.
* wcsmbs/mbrtowc.c: Correct logic testing for converted NUL
character. Patch by Owen Taylor <otaylor@redhat.com>.
Diffstat (limited to 'wcsmbs')
-rw-r--r-- | wcsmbs/mbrtowc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wcsmbs/mbrtowc.c b/wcsmbs/mbrtowc.c index 837b42f1f1..bf995ec713 100644 --- a/wcsmbs/mbrtowc.c +++ b/wcsmbs/mbrtowc.c @@ -1,6 +1,6 @@ -/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. - Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1996. + Contributed by Ulrich Drepper <drepper@gnu.org>, 1996. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as @@ -80,7 +80,7 @@ __mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps) if (status == GCONV_OK || status == GCONV_EMPTY_INPUT || status == GCONV_FULL_OUTPUT) { - if (data.outbuf != outbuf && *(wchar_t *)data.outbuf == L'\0') + if (data.outbuf != outbuf && *(wchar_t *)outbuf == L'\0') { /* The converted character is the NUL character. */ assert (__mbsinit (data.statep)); |