fortify-headers

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

commit 03289c3954f5a61643e0fbcbce901487c7c4037a
parent 131211ad478ea4f8712c0cc17a2846fe8e0012cf
Author: sin <sin@2f30.org>
Date:   Thu Jan 29 20:41:17 +0000

Fix typo

Diffstat:
include/string.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/string.h b/include/string.h @@ -77,7 +77,7 @@ __fortify_stpncpy(char *__restrict dest, const char *__restrict src, size_t n) { size_t bos = __builtin_object_size(dest, 0); - if (__builtin_costant_p(n) && n > bos) + if (__builtin_constant_p(n) && n > bos) __stpncpy_error(); if (n > bos)