diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/stdio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdio.h b/include/stdio.h index aeff658..1217a0f 100644 --- a/include/stdio.h +++ b/include/stdio.h | |||
| @@ -37,7 +37,7 @@ __fortify_vsnprintf(char *s, size_t n, const char *fmt, __builtin_va_list ap) | |||
| 37 | 37 | ||
| 38 | #undef snprintf | 38 | #undef snprintf |
| 39 | #define snprintf(s, n, fmt, ...) ({ \ | 39 | #define snprintf(s, n, fmt, ...) ({ \ |
| 40 | size_t _n = (n); \ | 40 | size_t _n = n; \ |
| 41 | size_t bos = __builtin_object_size(s, 0); \ | 41 | size_t bos = __builtin_object_size(s, 0); \ |
| 42 | if (_n > bos) \ | 42 | if (_n > bos) \ |
| 43 | __builtin_trap(); \ | 43 | __builtin_trap(); \ |
