diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-03-17 07:28:09 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-03-17 07:28:09 +0000 |
commit | 971b002d935155abd56d0b01fe5e284f63439b99 (patch) | |
tree | c31c349097cf981b9294f226534608b750c83f92 /src/common/util.h | |
parent | d9a8e317e435222da6dd670049b1f73654bbcca2 (diff) | |
download | tor-971b002d935155abd56d0b01fe5e284f63439b99.tar.gz tor-971b002d935155abd56d0b01fe5e284f63439b99.zip |
Include strlcpy and strlcat where not available, so our string ops can be less error-prone.
svn:r1289
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index 63d55c6fe4..f9b2b90eb5 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -32,6 +32,9 @@ #define INLINE inline #endif +size_t strlcat(char *dst, const char *src, size_t siz); +size_t strlcpy(char *dst, const char *src, size_t siz); + void *tor_malloc(size_t size); void *tor_malloc_zero(size_t size); void *tor_realloc(void *ptr, size_t size); |