diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-04-18 17:11:12 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-04-18 17:11:12 +0000 |
commit | d4bc783bf1b4ec05fcbc49f93b20b5e3199c23e4 (patch) | |
tree | 8b99cafd691ef7136df8da2b9cf6dc2ac29bfb83 /wcsmbs/mbsrtowcs.c | |
parent | 3ee12f2b9c556bbbcf5468b8cf0c7613ca3dc68f (diff) | |
download | glibc-d4bc783bf1b4ec05fcbc49f93b20b5e3199c23e4.zip glibc-d4bc783bf1b4ec05fcbc49f93b20b5e3199c23e4.tar.gz glibc-d4bc783bf1b4ec05fcbc49f93b20b5e3199c23e4.tar.bz2 |
Update.
* wcsmbs/mbsrtowcs.c (__mbsrtowcs): Correctly initialize outbufend
for dst==NULL.
Fixes PR libc/1084.
Diffstat (limited to 'wcsmbs/mbsrtowcs.c')
-rw-r--r-- | wcsmbs/mbsrtowcs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wcsmbs/mbsrtowcs.c b/wcsmbs/mbsrtowcs.c index a10eb85..84b7a38 100644 --- a/wcsmbs/mbsrtowcs.c +++ b/wcsmbs/mbsrtowcs.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 @@ -61,7 +61,7 @@ __mbsrtowcs (dst, src, len, ps) const unsigned char *inbuf = (const unsigned char *) *src; const unsigned char *srcend = inbuf + strlen (inbuf) + 1; - data.outbufend = data.outbuf + sizeof (buf); + data.outbufend = (char *) buf + sizeof (buf); do { data.outbuf = (char *) buf; |