FS type is now sent in the mode array, limiting names to 9 characters.
This commit is contained in:
parent
9e4a42366d
commit
cfb22d4386
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user