summaryrefslogtreecommitdiff
path: root/include/stdio.h
diff options
context:
space:
mode:
authorSertonix2026-04-30 12:32:01 +0200
committerJulien Voisin2026-04-30 12:57:02 +0200
commitb9121e4d679b5fccb69abcb58b05a6be5c7191dc (patch)
treeea81c5455d0961eb4af49118a77e4677efff2510 /include/stdio.h
parentda5d5b242669f685e187d3356dcc083087624d56 (diff)
Change access of first fgets argument to write_only
Fixes bf242b15e1f7
Diffstat (limited to 'include/stdio.h')
-rw-r--r--include/stdio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 7a8ef05..468bf82 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -37,7 +37,7 @@ extern "C" {
37#undef snprintf 37#undef snprintf
38#undef sprintf 38#undef sprintf
39 39
40__fortify_access(read_write, 1, 2) 40__fortify_access(write_only, 1, 2)
41__fortify_access(read_only, 3) 41__fortify_access(read_only, 3)
42_FORTIFY_FN(fgets) char *fgets(char * _FORTIFY_POS0 __s, int __n, FILE *__f) 42_FORTIFY_FN(fgets) char *fgets(char * _FORTIFY_POS0 __s, int __n, FILE *__f)
43{ 43{