From 0d558ddc27a4f74b8754b7bd0df7bc9f67c8b94c Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Thu, 4 Jan 2018 11:04:52 -0600 Subject: [PATCH] create directory: fix strlcpy usage The final character was being cut off. --- src/util-path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util-path.c b/src/util-path.c index 5af172fb61..87efc11774 100644 --- a/src/util-path.c +++ b/src/util-path.c @@ -81,7 +81,7 @@ int SCCreateDirectoryTree(const char *path) return -1; } - strlcpy(pathbuf, path, len); + strlcpy(pathbuf, path, sizeof(pathbuf)); for (p = pathbuf + 1; *p; p++) { if (*p == '/') { -- 2.47.2