fortify-headers

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

commit 66b34fbe593a3b2087d2276957b47a5bab567f18
parent 0826c593bee3c68261318decc5475e45c4b030ec
Author: sin <sin@2f30.org>
Date:   Sun,  1 Mar 2015 11:55:38 +0000

Fix potential signed/unsigned warning

Diffstat:
Minclude/stdio.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/stdio.h b/include/stdio.h @@ -50,7 +50,7 @@ __fortify_vsnprintf(char *s, size_t n, const char *fmt, __builtin_va_list ap) int r; \ if (bos != -1) { \ r = (snprintf)(s, bos, fmt, ## __VA_ARGS__); \ - if (r == -1 || r >= bos) \ + if (r == -1 || (size_t)r >= bos) \ __builtin_trap(); \ } else { \ r = (sprintf)(s, fmt, ## __VA_ARGS__); \