From 44a71e36ed37781fa850662f479734cce1c354ce Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 22 Jun 2023 18:46:08 +0200 Subject: Add an annotation for fgets --- include/stdio.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/stdio.h') 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" { #undef snprintf #undef sprintf +__access(write_only, 1, 2) _FORTIFY_FN(fgets) char *fgets(char *__s, int __n, FILE *__f) { size_t __b = __bos(__s, 0); -- cgit v1.3