aboutsummaryrefslogtreecommitdiff
path: root/wcsmbs/wchar.h
diff options
context:
space:
mode:
authorDaniel Marjamäki <Daniel.Marjamaki@evidente.se>2015-05-05 17:24:38 +0200
committerFlorian Weimer <fweimer@redhat.com>2015-05-05 17:24:38 +0200
commita6ab6ccda3c3aeb741bff7a18fb737e5b7233a49 (patch)
tree6e4a8173ff837be42a574f2a2f38193b96f32bc2 /wcsmbs/wchar.h
parentd0ccd0d977df62f0fe0f6c91237613b95f5d5a5f (diff)
downloadglibc-a6ab6ccda3c3aeb741bff7a18fb737e5b7233a49.zip
glibc-a6ab6ccda3c3aeb741bff7a18fb737e5b7233a49.tar.gz
glibc-a6ab6ccda3c3aeb741bff7a18fb737e5b7233a49.tar.bz2
Add __nonnull attribute to wcscpy and wcsncpy [BZ#18265]
Diffstat (limited to 'wcsmbs/wchar.h')
-rw-r--r--wcsmbs/wchar.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/wcsmbs/wchar.h b/wcsmbs/wchar.h
index 9652f65..0d68cda 100644
--- a/wcsmbs/wchar.h
+++ b/wcsmbs/wchar.h
@@ -145,11 +145,13 @@ __USING_NAMESPACE_STD(tm)
__BEGIN_NAMESPACE_STD
/* Copy SRC to DEST. */
extern wchar_t *wcscpy (wchar_t *__restrict __dest,
- const wchar_t *__restrict __src) __THROW;
+ const wchar_t *__restrict __src)
+ __THROW __nonnull ((1, 2));
+
/* Copy no more than N wide-characters of SRC to DEST. */
extern wchar_t *wcsncpy (wchar_t *__restrict __dest,
const wchar_t *__restrict __src, size_t __n)
- __THROW;
+ __THROW __nonnull ((1, 2));
/* Append SRC onto DEST. */
extern wchar_t *wcscat (wchar_t *__restrict __dest,