Support moving files across filesystems

This commit is contained in:
topjohnwu
2018-02-02 04:47:16 +08:00
parent d1be34c34a
commit 599ae95251
2 changed files with 12 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ struct node_entry {
static void concat_path(struct node_entry *node) {
if (node->parent)
concat_path(node->parent);
int len = strlen(buf);
size_t len = strlen(buf);
buf[len] = '/';
strcpy(buf + len + 1, node->name);
}