summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorjvoisin2023-09-29 14:50:24 +0200
committerjvoisin2023-09-29 14:50:24 +0200
commit4988174f7eecc6da544ebf23156ce638cecf0f3f (patch)
tree181757bfa8c9d78d32bf19f997370933589df23c /include
parent3067c28ceb744b2bafe9202023084f762871e844 (diff)
Make use of the native _chk variants for real
Diffstat (limited to 'include')
-rw-r--r--include/stdio.h4
1 files changed, 2 insertions, 2 deletions
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,
147 const char *__f, __builtin_va_list __v) 147 const char *__f, __builtin_va_list __v)
148{ 148{
149#if __has_builtin(__builtin___vsnprintf_chk) && USE_NATIVE_CHK 149#if __has_builtin(__builtin___vsnprintf_chk) && USE_NATIVE_CHK
150 return __builtin___vsnprintf_chk(__s, __n, _FORTIFY_SOURCE, __bos(__s, 0), __f, __v,); 150 return __builtin___vsnprintf_chk(__s, __n, _FORTIFY_SOURCE, __bos(__s, 0), __f, __v);
151#else 151#else
152 size_t __b = __bos(__s, 0); 152 size_t __b = __bos(__s, 0);
153 153
@@ -167,7 +167,7 @@ _FORTIFY_FN(vsprintf) int vsprintf(char * _FORTIFY_POS0 __s, const char *__f,
167 __builtin_va_list __v) 167 __builtin_va_list __v)
168{ 168{
169#if __has_builtin(__builtin___vsprintf_chk) && USE_NATIVE_CHK 169#if __has_builtin(__builtin___vsprintf_chk) && USE_NATIVE_CHK
170 return __builtin___vsprintf_chk(__s, _FORTIFY_SOURCE, __bos(__s, 0), __f, __v,); 170 return __builtin___vsprintf_chk(__s, _FORTIFY_SOURCE, __bos(__s, 0), __f, __v);
171#else 171#else
172 size_t __b = __bos(__s, 0); 172 size_t __b = __bos(__s, 0);
173 int __r; 173 int __r;