From: Daniel Marjamäki Date: Tue, 5 May 2015 15:24:38 +0000 (+0200) Subject: Add __nonnull attribute to wcscpy and wcsncpy [BZ#18265] X-Git-Tag: upstream/2.24~1662 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a6ab6ccda3c3aeb741bff7a18fb737e5b7233a49;p=platform%2Fupstream%2Fglibc.git Add __nonnull attribute to wcscpy and wcsncpy [BZ#18265] --- diff --git a/ChangeLog b/ChangeLog index 50a8d09..ecc175e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-04-30 Daniel Marjamäki + + [BZ #18265] + * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute. + (wcsncpy): Likewise. + 2015-05-05 Florian Weimer * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): 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,