summaryrefslogtreecommitdiff
path: root/include/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/string.h')
-rw-r--r--include/string.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h
index cf0be60..987b50c 100644
--- a/include/string.h
+++ b/include/string.h
@@ -71,6 +71,7 @@ _FORTIFY_FN(memmove) void *memmove(void * _FORTIFY_POS0 __d,
71} 71}
72 72
73__access(write_only, 1, 3) 73__access(write_only, 1, 3)
74__warning_if(__c != 0 && __n == 0, "'memset' will set `0` bytes; did you invert the arguments?")
74_FORTIFY_FN(memset) void *memset(void * _FORTIFY_POS0 __d, int __c, size_t __n) 75_FORTIFY_FN(memset) void *memset(void * _FORTIFY_POS0 __d, int __c, size_t __n)
75{ 76{
76 size_t __b = __bos(__d, 0); 77 size_t __b = __bos(__d, 0);