diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2004-06-21 22:55:05 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2004-06-21 22:55:05 +0000 |
commit | c65f58a4df9958076562fc85e7274aed0f622176 (patch) | |
tree | 361a1cb4beb62787b9fc00cae3df68e42ff7deb3 /sys/lib/libkern/funcs.h | |
parent | d0f1e78e8caefac97f642f08eb3dcfa765894346 (diff) |
add bounded attribute to some functions. anil tested and ok'ed
Diffstat (limited to 'sys/lib/libkern/funcs.h')
-rw-r--r-- | sys/lib/libkern/funcs.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/lib/libkern/funcs.h b/sys/lib/libkern/funcs.h index 9312dfb7d8a..b2cd0692f53 100644 --- a/sys/lib/libkern/funcs.h +++ b/sys/lib/libkern/funcs.h @@ -1,2 +1,4 @@ -size_t strlcpy(char *, const char *, int); -size_t strlcat(char *, const char *, int); +size_t strlcpy(char *, const char *, int) + __attribute__ ((__bounded__(__string__,1,3))); +size_t strlcat(char *, const char *, int) + __attribute__ ((__bounded__(__string__,1,3))); |