diff options
| author | jvoisin | 2023-06-22 18:46:08 +0200 |
|---|---|---|
| committer | jvoisin | 2023-06-22 18:46:08 +0200 |
| commit | 44a71e36ed37781fa850662f479734cce1c354ce (patch) | |
| tree | 1cbd651379bdcaf7342174aa5527c32a422cc8af /include/stdio.h | |
| parent | dad7183404977f02512898b030242a7c0a40051c (diff) | |
Add an annotation for fgets
Diffstat (limited to 'include/stdio.h')
| -rw-r--r-- | include/stdio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/stdio.h b/include/stdio.h index 1eb20be..1b1cd46 100644 --- a/include/stdio.h +++ b/include/stdio.h | |||
| @@ -36,6 +36,7 @@ extern "C" { | |||
| 36 | #undef snprintf | 36 | #undef snprintf |
| 37 | #undef sprintf | 37 | #undef sprintf |
| 38 | 38 | ||
| 39 | __access(write_only, 1, 2) | ||
| 39 | _FORTIFY_FN(fgets) char *fgets(char *__s, int __n, FILE *__f) | 40 | _FORTIFY_FN(fgets) char *fgets(char *__s, int __n, FILE *__f) |
| 40 | { | 41 | { |
| 41 | size_t __b = __bos(__s, 0); | 42 | size_t __b = __bos(__s, 0); |
