commit 1b6c677696dc8f2c16696b038cb88f474ceee8ed parent 40c4896befd05eda5951451101d2941431fd8618 Author: Michael Savage <mikejsavage@gmail.com> Date: Sat Mar 4 14:39:43 +0200 strlcpy header fixes Diffstat:
strlcpy.cc | | | 2 | +- |
strlcpy.h | | | 2 | ++ |
diff --git a/strlcpy.cc b/strlcpy.cc @@ -16,7 +16,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include <stdlib.h> +#include <stddef.h> /* * Copy string src to buffer dst of size dsize. At most dsize-1 diff --git a/strlcpy.h b/strlcpy.h @@ -1,3 +1,5 @@ #pragma once +#include <stddef.h> + size_t strlcpy( char * dst, const char * src, size_t dsize );