aboutsummaryrefslogtreecommitdiff
path: root/src/base/fs/walk.c
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2021-12-05 09:47:21 -0800
committerNicholas Noll <nbnoll@eml.cc>2021-12-05 10:54:20 -0800
commit521d01e8ad87e931af3e9a763cc84a6cf7fe5ee3 (patch)
treef544119060c3eefc7b0fec6cff1740a362541213 /src/base/fs/walk.c
parent158d9b84f14457136379f42e7c071eb79d87ee6b (diff)
Feat: basic string and memory functions
Continue filling out the basic standard lib functions. Included prototypes of the str* and mem* families. Plan to add e(str|mem) and n(str|mem) variants as well.
Diffstat (limited to 'src/base/fs/walk.c')
-rw-r--r--src/base/fs/walk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/fs/walk.c b/src/base/fs/walk.c
index 752791d..4b0d0aa 100644
--- a/src/base/fs/walk.c
+++ b/src/base/fs/walk.c
@@ -95,7 +95,7 @@ fs·walk(fs·Walker *fs)
(d->d_name[1] == '.' && d->d_name[2] == 0)) /* .. */
continue;
- fs->end = str·copyn(fs->base, d->d_name, arrend(fs->path) - fs->base);
+ fs->end = str·ncopy(fs->base, arrend(fs->path) - fs->base, d->d_name);
fs->lev++;
fs·walk(fs);