mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-30 12:31:53 +08:00
Update.
* wcsmbs/wctob.c: Avoid sign extension when returning character. Reported by Bruno Haible <haible@ilog.fr>.
This commit is contained in:
parent
b8a423c2db
commit
eea35053ac
@ -1,5 +1,8 @@
|
|||||||
1999-07-26 Ulrich Drepper <drepper@cygnus.com>
|
1999-07-26 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* wcsmbs/wctob.c: Avoid sign extension when returning character.
|
||||||
|
Reported by Bruno Haible <haible@ilog.fr>.
|
||||||
|
|
||||||
* wcsmbs/wcsrtombs.c (__wcsrtombs): When computing maximum number
|
* wcsmbs/wcsrtombs.c (__wcsrtombs): When computing maximum number
|
||||||
of wide characters to convert do it right and don't overestimate
|
of wide characters to convert do it right and don't overestimate
|
||||||
by multiplying with MB_CUR_MAX.
|
by multiplying with MB_CUR_MAX.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* 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.ai.mit.edu>, 1996.
|
||||||
|
|
||||||
@ -62,5 +62,5 @@ wctob (c)
|
|||||||
|| data.__outbuf != (unsigned char *) (buf + 1))
|
|| data.__outbuf != (unsigned char *) (buf + 1))
|
||||||
return EOF;
|
return EOF;
|
||||||
|
|
||||||
return buf[0];
|
return (unsigned char) buf[0];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user