mirror of git://sourceware.org/git/glibc.git
Update.
* wcsmbs/mbsrtowcs.c (__mbsrtowcs): Correctly initialize outbufend for dst==NULL. Fixes PR libc/1084.
This commit is contained in:
parent
3ee12f2b9c
commit
d4bc783bf1
|
@ -1,5 +1,9 @@
|
||||||
1999-04-18 Ulrich Drepper <drepper@cygnus.com>
|
1999-04-18 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* wcsmbs/mbsrtowcs.c (__mbsrtowcs): Correctly initialize outbufend
|
||||||
|
for dst==NULL.
|
||||||
|
Fixes PR libc/1084.
|
||||||
|
|
||||||
* socket/sys/socket.h: Define SHUT_RD, SHUT_WR, and SHUT_RDWR.
|
* socket/sys/socket.h: Define SHUT_RD, SHUT_WR, and SHUT_RDWR.
|
||||||
Fixes PR libc/1083.
|
Fixes PR libc/1083.
|
||||||
|
|
||||||
|
|
|
@ -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.
|
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
|
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
|
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 *inbuf = (const unsigned char *) *src;
|
||||||
const unsigned char *srcend = inbuf + strlen (inbuf) + 1;
|
const unsigned char *srcend = inbuf + strlen (inbuf) + 1;
|
||||||
|
|
||||||
data.outbufend = data.outbuf + sizeof (buf);
|
data.outbufend = (char *) buf + sizeof (buf);
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
data.outbuf = (char *) buf;
|
data.outbuf = (char *) buf;
|
||||||
|
|
Loading…
Reference in New Issue