mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
* wcsmbs/bits/wchar2.h (swprintf): Remove format argument.
* debug/tst-chk1.c (do_test): Add test for swprintf with format being the last argument. 2005-07-21 Thorsten Kukuk <kukuk@suse.de> * debug/getgroups_chk.c (__getgroups_chk): Fix return value. * stdio-common/fxprintf.c: Include string.h.
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
char *
|
||||
int
|
||||
__getgroups_chk (int size, __gid_t list[], size_t listlen)
|
||||
{
|
||||
if (__builtin_expect (size * sizeof (__gid_t) > listlen, 0))
|
||||
|
@@ -403,6 +403,10 @@ do_test (void)
|
||||
|| wmemcmp (wbuf, L"aabcEDX98", 10))
|
||||
FAIL ();
|
||||
|
||||
if (swprintf (wbuf + 7, 3, L"64") != 2
|
||||
|| wmemcmp (wbuf, L"aabcEDX64", 10))
|
||||
FAIL ();
|
||||
|
||||
/* These ops need runtime checking, but shouldn't __chk_fail. */
|
||||
wmemcpy (wbuf, L"abcdefghij", l0 + 10);
|
||||
wmemmove (wbuf + 1, wbuf, l0 + 9);
|
||||
|
Reference in New Issue
Block a user