diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-05-19 16:52:55 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-05-19 16:52:55 +0000 |
commit | d4b6038332afd43414b7ff0eb0ae3dec377b10bf (patch) | |
tree | 3103fc39b1009ce2a977ec353f7570d149e93fb5 /wcsmbs | |
parent | b3b71a3bcbc23d22405d53bedcf62e0309c93f38 (diff) | |
download | glibc-d4b6038332afd43414b7ff0eb0ae3dec377b10bf.tar.gz |
Update.
* misc/regexp.h: Say the functions have been withdrawn.
Diffstat (limited to 'wcsmbs')
-rw-r--r-- | wcsmbs/tst-wcpncpy.c | 10 |
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; } |