fortify-headers

standalone fortify-source implementation
git clone git://git.2f30.org/fortify-headers
Log | Files | Refs | README | LICENSE

commit 50e37c7f766ba94f42993e14bb3207807ff14b30
parent 07adb509146e4185b9b7587baad26cdfb766c67e
Author: sin <sin@2f30.org>
Date:   Wed, 13 May 2015 12:18:35 +0100

Wrap some overly long lines

Diffstat:
Minclude/wchar.h | 12++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/include/wchar.h b/include/wchar.h @@ -53,7 +53,8 @@ fortify_fn(fgetws) wchar_t *fgetws(wchar_t *s, int n, FILE *fp) #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) #undef mbsnrtowcs -fortify_fn(mbsnrtowcs) size_t mbsnrtowcs(wchar_t *d, const char **s, size_t n, size_t wn, mbstate_t *st) +fortify_fn(mbsnrtowcs) size_t mbsnrtowcs(wchar_t *d, const char **s, size_t n, + size_t wn, mbstate_t *st) { size_t bos = __builtin_object_size(d, 0); size_t r; @@ -72,7 +73,8 @@ fortify_fn(mbsnrtowcs) size_t mbsnrtowcs(wchar_t *d, const char **s, size_t n, s } #endif -fortify_fn(mbsrtowcs) size_t mbsrtowcs(wchar_t *d, const char **s, size_t wn, mbstate_t *st) +fortify_fn(mbsrtowcs) size_t mbsrtowcs(wchar_t *d, const char **s, size_t wn, + mbstate_t *st) { size_t bos = __builtin_object_size(d, 0); size_t r; @@ -148,7 +150,8 @@ fortify_fn(wcsncpy) wchar_t *wcsncpy(wchar_t *d, const wchar_t *s, size_t n) #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) #undef wcsnrtombs -fortify_fn(wcsnrtombs) size_t wcsnrtombs(char *d, const wchar_t **s, size_t wn, size_t n, mbstate_t *st) +fortify_fn(wcsnrtombs) size_t wcsnrtombs(char *d, const wchar_t **s, size_t wn, + size_t n, mbstate_t *st) { size_t bos = __builtin_object_size(d, 0); size_t r; @@ -167,7 +170,8 @@ fortify_fn(wcsnrtombs) size_t wcsnrtombs(char *d, const wchar_t **s, size_t wn, } #endif -fortify_fn(wcsrtombs) size_t wcsrtombs(char *d, const wchar_t **s, size_t n, mbstate_t *st) +fortify_fn(wcsrtombs) size_t wcsrtombs(char *d, const wchar_t **s, size_t n, + mbstate_t *st) { size_t bos = __builtin_object_size(d, 0); size_t r;