From: Ulrich Drepper Date: Mon, 19 Apr 1999 07:44:20 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_1_1~136 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d788be1eb4008bb29899e7c3f2c782ab0c0f3882;p=thirdparty%2Fglibc.git Update. 1999-04-19 Ulrich Drepper * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Correctly initialize outbufend for dst==NULL. --- diff --git a/ChangeLog b/ChangeLog index ffdb41935d9..cc162d3ee43 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-04-19 Ulrich Drepper + + * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Correctly initialize + outbufend for dst==NULL. + 1999-04-18 Ulrich Drepper * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Correctly initialize outbufend diff --git a/wcsmbs/mbsnrtowcs.c b/wcsmbs/mbsnrtowcs.c index 78e327eeea9..cb2d41c4c85 100644 --- a/wcsmbs/mbsnrtowcs.c +++ b/wcsmbs/mbsnrtowcs.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 @@ -68,7 +68,7 @@ __mbsnrtowcs (dst, src, nmc, len, ps) wchar_t buf[64]; /* Just an arbitrary size. */ const unsigned char *inbuf = *src; - data.outbufend = data.outbuf + sizeof (buf); + data.outbufend = (char *) buf + sizeof (buf); do { data.outbuf = (char *) buf;