Skip to content

Commit

Permalink
Add an annotation for fgets
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoisin committed Jun 22, 2023
1 parent dad7183 commit 44a71e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/stdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 44a71e3

Please sign in to comment.