create directory: fix strlcpy usage

The final character was being cut off.
pull/3175/head
Jason Ish 7 years ago
parent de2fffca5e
commit 0d558ddc27

@ -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 == '/') {

Loading…
Cancel
Save