about summary refs log tree commit diff
path: root/debug
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-07-21 16:23:54 +0000
committerUlrich Drepper <drepper@redhat.com>2005-07-21 16:23:54 +0000
commit757beee151f9f56be2e49f7a82abc8a58734bca2 (patch)
treea378e0e8fc9a72b760e82c027dd6ab101546c33b /debug
parent35476e9cd7d61290ecdc4a75496df6a36f22a005 (diff)
downloadglibc-757beee151f9f56be2e49f7a82abc8a58734bca2.tar.gz
glibc-757beee151f9f56be2e49f7a82abc8a58734bca2.tar.xz
glibc-757beee151f9f56be2e49f7a82abc8a58734bca2.zip
* 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.
Diffstat (limited to 'debug')
-rw-r--r--debug/getgroups_chk.c2
-rw-r--r--debug/tst-chk1.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/debug/getgroups_chk.c b/debug/getgroups_chk.c
index 6401b023d3..c877ddb9ca 100644
--- a/debug/getgroups_chk.c
+++ b/debug/getgroups_chk.c
@@ -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))
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);