Skip to content

Commit 3119641

Browse files
committed
Fix typo in attribute access example
Signed-off-by: Thomas Nyman <thomas.nyman@ericsson.com>
1 parent 0327f4a commit 3119641

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Compiler-Hardening-Guides/Compiler-Annotations-for-C-and-C++.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ char* strcat (char* destination, const char* source) __attribute__ ((access (rea
207207
// Denotes that strcpy performs write-only access on the memory pointed to by destination and read-only access on the memory pointed to by source.
208208
char* strcpy (char* destination, const char* source) __attribute__ ((access (write_only, 1), access (read_only, 2)));
209209
210-
// Denotes that fgets performs write-only access up n character on the memory pointed to by buff and read-write access on the memory pointed to by stream.
210+
// Denotes that fgets performs write-only access up to n character on the memory pointed to by buff and read-write access on the memory pointed to by stream.
211211
int fgets (char* buff, int n, FILE* stream) __attribute__ ((access (write_only, 1, 2), access (read_write, 3)));
212212
213213
// Denotes that print_buffer performs read-only access up to size characters on memory pointed to by buffer.

0 commit comments

Comments
 (0)