diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-03 15:19:59 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-03 15:19:59 -0400 |
| commit | 8d173710fe8cfd96bd54f9dd1cf0eccacfdd6e73 (patch) | |
| tree | e93cf2ad599ed1378366303d1162a60fec5090db /src/stdlib/paths.c | |
| parent | cedae3039c8d67568b5ac35833c10cbfc1c7cb23 (diff) | |
Deprecate heap_strf
Diffstat (limited to 'src/stdlib/paths.c')
| -rw-r--r-- | src/stdlib/paths.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stdlib/paths.c b/src/stdlib/paths.c index 3f27aef7..7a5346f5 100644 --- a/src/stdlib/paths.c +++ b/src/stdlib/paths.c @@ -17,7 +17,6 @@ #include <unistd.h> #include <unistr.h> -#include "print.h" #include "arrays.h" #include "enums.h" #include "files.h" @@ -28,6 +27,7 @@ #include "text.h" #include "types.h" #include "util.h" +#include "print.h" // Use inline version of the siphash code for performance: #include "siphash.h" @@ -491,7 +491,7 @@ static Array_t _filtered_children(Path_t path, bool include_hidden, mode_t filte if (streq(dir->d_name, ".") || streq(dir->d_name, "..")) continue; - const char *child_str = heap_strf("%.*s/%s", path_len, path_str, dir->d_name); + const char *child_str = String(string_slice(path_str, path_len), "/", dir->d_name); struct stat sb; if (stat(child_str, &sb) != 0) continue; |
