From b8f558b7ace3a2e5e3234ac24a600cbe230da8d1 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 4 Feb 1999 00:15:46 +0000 Subject: Update. 1999-02-04 Ulrich Drepper * 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 . --- wcsmbs/mbrtowc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wcsmbs') 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 , 1996. + Contributed by Ulrich Drepper , 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)); -- cgit v1.2.3