Cleanup some code

This commit is contained in:
topjohnwu
2023-05-28 23:50:52 -07:00
parent e668dbf6f7
commit f2846694e1
5 changed files with 43 additions and 25 deletions

View File

@@ -12,7 +12,7 @@
using namespace std;
int fd_pathat(int dirfd, const char *name, char *path, size_t size) {
if (fd_path(dirfd, byte_slice(path, size)) < 0)
if (fd_path(dirfd, u8_mut_slice(path, size)) < 0)
return -1;
auto len = strlen(path);
path[len] = '/';