X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/3e170ce000f1506b7b5d2c5c7faec85ceabb573d..5ba3f43ea354af8ad55bea84372a2bc834d8757c:/bsd/miscfs/devfs/devfs_tree.c diff --git a/bsd/miscfs/devfs/devfs_tree.c b/bsd/miscfs/devfs/devfs_tree.c index 21912549a..adbc2e78f 100644 --- a/bsd/miscfs/devfs/devfs_tree.c +++ b/bsd/miscfs/devfs/devfs_tree.c @@ -328,7 +328,7 @@ dev_finddir(const char * path, while (*scan != '/' && *scan) scan++; - strlcpy(component, start, scan - start); + strlcpy(component, start, (scan - start) + 1); if (*scan == '/') scan++;