diff options
author | Patrick Georgi <Patrick.Georgi@secunet.com> | 2011-03-11 09:34:23 +0100 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2011-07-07 22:29:35 +0200 |
commit | 163e220c5d9a8f52bd4f195c9dc456233fa23d11 (patch) | |
tree | c2e1e99ac03bb7389804bbab54418e09a97ecc28 /payloads/libpayload/include | |
parent | 23b6c8f7caa09ed714bce9b6572b6067ae0498c6 (diff) |
libpayload: Implement strlcpy
Change-Id: Ibd339957690afe2cded46895c3088eba87f0ffd1
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
Reviewed-on: http://review.coreboot.org/85
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'payloads/libpayload/include')
-rw-r--r-- | payloads/libpayload/include/string.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/payloads/libpayload/include/string.h b/payloads/libpayload/include/string.h index 88054e017b..9e4f791a7d 100644 --- a/payloads/libpayload/include/string.h +++ b/payloads/libpayload/include/string.h @@ -55,7 +55,6 @@ int strncasecmp(const char *s1, const char *s2, size_t maxlen); char *strncpy(char *d, const char *s, size_t n); char *strcpy(char *d, const char *s); char *strncat(char *d, const char *s, size_t n); -size_t strlcat(char *d, const char *s, size_t n); char *strcat(char *d, const char *s); char *strchr(const char *s, int c); char *strrchr(const char *s, int c); @@ -68,4 +67,13 @@ char* strtok(char *str, const char *delim); char* strtok_r(char *str, const char *delim, char **ptr); /** @} */ +/** + * @defgroup string OpenBSD based safe string functions + * @{ + */ +size_t strlcpy(char *d, const char *s, size_t n); +size_t strlcat(char *d, const char *s, size_t n); +/** @} */ + + #endif |