From 521d01e8ad87e931af3e9a763cc84a6cf7fe5ee3 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sun, 5 Dec 2021 09:47:21 -0800 Subject: 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. --- src/base/fs/walker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/base/fs/walker.c') diff --git a/src/base/fs/walker.c b/src/base/fs/walker.c index 4ef35cf..d988d13 100644 --- a/src/base/fs/walker.c +++ b/src/base/fs/walker.c @@ -17,7 +17,7 @@ fs·init(fs·Walker *fs, char *path) return 1; fs->end += strlen(path); }else - fs->end = str·copyn(fs->base, path, arrlen(fs->path)); + fs->end = str·ncopy(fs->base, arrlen(fs->path), path); if(fs->path[0] != '/') fs->fd = AT_FDCWD; -- cgit v1.2.1