aboutsummaryrefslogtreecommitdiffstats
path: root/strlcpy.c
diff options
context:
space:
mode:
authorsin <[email protected]>2016-01-06 17:02:28 +0000
committersin <[email protected]>2016-01-06 17:03:42 +0000
commit2809fd3795e8445f686547d08eef4631efc05030 (patch)
treef3c0341b4d4f7039c7425098befe853ae0bd6188 /strlcpy.c
parent87360fe2526f7713c4626d04da521579141fcf68 (diff)
downloadstagit-2809fd3795e8445f686547d08eef4631efc05030.tar.gz
stagit-2809fd3795e8445f686547d08eef4631efc05030.zip
Bring in reallocarray() from OpenBSD
Diffstat (limited to 'strlcpy.c')
-rw-r--r--strlcpy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/strlcpy.c b/strlcpy.c
index e9a7fe4..ab420b6 100644
--- a/strlcpy.c
+++ b/strlcpy.c
@@ -19,6 +19,8 @@
#include <sys/types.h>
#include <string.h>
+#include "compat.h"
+
/*
* Copy string src to buffer dst of size dsize. At most dsize-1
* chars will be copied. Always NUL terminates (unless dsize == 0).