summary refs log tree commit diff
path: root/wcsmbs/tst-wcpncpy.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-05-19 16:52:55 +0000
committerUlrich Drepper <drepper@redhat.com>2004-05-19 16:52:55 +0000
commitd4b6038332afd43414b7ff0eb0ae3dec377b10bf (patch)
tree3103fc39b1009ce2a977ec353f7570d149e93fb5 /wcsmbs/tst-wcpncpy.c
parentb3b71a3bcbc23d22405d53bedcf62e0309c93f38 (diff)
downloadglibc-d4b6038332afd43414b7ff0eb0ae3dec377b10bf.tar.gz
glibc-d4b6038332afd43414b7ff0eb0ae3dec377b10bf.tar.xz
glibc-d4b6038332afd43414b7ff0eb0ae3dec377b10bf.zip
Update.
	* misc/regexp.h: Say the functions have been withdrawn.
Diffstat (limited to 'wcsmbs/tst-wcpncpy.c')
-rw-r--r--wcsmbs/tst-wcpncpy.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/wcsmbs/tst-wcpncpy.c b/wcsmbs/tst-wcpncpy.c
index 26eeff9485..76d5fd3fd7 100644
--- a/wcsmbs/tst-wcpncpy.c
+++ b/wcsmbs/tst-wcpncpy.c
@@ -27,7 +27,7 @@ main (void)
   int result = 0;
 
   const wchar_t src[] = L"0";
-  wchar_t dest[10];
+  wchar_t dest[21];
   wmemset (dest, L'\0', 10);
   wchar_t *endp = wcpncpy (dest, src, 2);
   if (wcscmp (dest, src) != 0)
@@ -65,5 +65,13 @@ main (void)
       puts ("return value of long string call incorrect");
     }
 
+  const wchar_t src5[] = L"ab";
+  endp = wcpncpy (dest, src5, 20);
+  if (endp != dest + 2)
+    {
+      result = 1;
+      puts ("return value of large limit call incorrect");
+    }
+
   return result;
 }