From 757beee151f9f56be2e49f7a82abc8a58734bca2 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 21 Jul 2005 16:23:54 +0000 Subject: * 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 * debug/getgroups_chk.c (__getgroups_chk): Fix return value. * stdio-common/fxprintf.c: Include string.h. --- debug/tst-chk1.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'debug/tst-chk1.c') diff --git a/debug/tst-chk1.c b/debug/tst-chk1.c index 62b0fa6f40..755052c52b 100644 --- a/debug/tst-chk1.c +++ b/debug/tst-chk1.c @@ -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); -- cgit 1.4.1