diff --git a/libc/stdio.c b/libc/stdio.c index 618625e..685180c 100644 --- a/libc/stdio.c +++ b/libc/stdio.c @@ -100,7 +100,7 @@ int fputs(const char* s, FILE* stream) { } void register_fs(const char* name) { - vfs_message* msg_data=make_msg(VFS_REGISTER_FS,NULL,name,0,0); + vfs_message* msg_data=make_msg(VFS_REGISTER_FS,name,NULL,0,0); Message msg; msg.from=box; msg.to=VFS_MBOX; diff --git a/vfs/main.c b/vfs/main.c index 6bc45e7..22bc018 100644 --- a/vfs/main.c +++ b/vfs/main.c @@ -149,9 +149,9 @@ void vfs_putc(vfs_message* vfs_msg,uint32_t from) { } void vfs_register_fs(vfs_message* vfs_msg, uint32_t from) { - char* name=malloc(sizeof(char)*(strlen(vfs_msg->path)+1)); + char* name=malloc(sizeof(char)*(strlen(vfs_msg->mode)+1)); name[0]='\0'; - strcpy(name,&vfs_msg->path[0]); + strcpy(name,&vfs_msg->mode[0]); register_fs_intern(from,name); vfs_msg->flags=0; }