Skip to content

Commit

Permalink
Add an __access__ annotation to wchar.h
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoisin committed Jul 9, 2023
1 parent a37c769 commit 2cef5af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/wchar.h
Expand Up @@ -218,6 +218,7 @@ _FORTIFY_FN(wcsrtombs) size_t wcsrtombs(char * _FORTIFY_POS0 __d,
return __r;
}

__access(write_only, 2, 3)
_FORTIFY_FN(wcstombs) size_t wcstombs(char * _FORTIFY_POS0 __s,
const wchar_t *__ws, size_t __n)
{
Expand Down

0 comments on commit 2cef5af

Please sign in to comment.