summaryrefslogtreecommitdiffstats
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 23a909281d..e8655cd0d0 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -511,10 +511,10 @@ char *getcwd(char *buf, getcwd_size_t size)
return tc.currdir;
else if (size)
{
- if ((getcwd_size_t)strlcpy(buf, tc.currdir, size) < size)
+ if (strmemccpy(buf, tc.currdir, size) != NULL)
return buf;
}
- /* size == 0, or truncation in strlcpy */
+ /* size == 0, or truncation in strmemccpy */
return NULL;
}