From 4988174f7eecc6da544ebf23156ce638cecf0f3f Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 29 Sep 2023 14:50:24 +0200 Subject: Make use of the native _chk variants for real --- include/stdio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/stdio.h') diff --git a/include/stdio.h b/include/stdio.h index c363edc..e93fe19 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -147,7 +147,7 @@ _FORTIFY_FN(vsnprintf) int vsnprintf(char * _FORTIFY_POS0 __s, size_t __n, const char *__f, __builtin_va_list __v) { #if __has_builtin(__builtin___vsnprintf_chk) && USE_NATIVE_CHK - return __builtin___vsnprintf_chk(__s, __n, _FORTIFY_SOURCE, __bos(__s, 0), __f, __v,); + return __builtin___vsnprintf_chk(__s, __n, _FORTIFY_SOURCE, __bos(__s, 0), __f, __v); #else size_t __b = __bos(__s, 0); @@ -167,7 +167,7 @@ _FORTIFY_FN(vsprintf) int vsprintf(char * _FORTIFY_POS0 __s, const char *__f, __builtin_va_list __v) { #if __has_builtin(__builtin___vsprintf_chk) && USE_NATIVE_CHK - return __builtin___vsprintf_chk(__s, _FORTIFY_SOURCE, __bos(__s, 0), __f, __v,); + return __builtin___vsprintf_chk(__s, _FORTIFY_SOURCE, __bos(__s, 0), __f, __v); #else size_t __b = __bos(__s, 0); int __r; -- cgit v1.3