Update sys.c_1.1

master
pt3oyfief 2 years ago
parent 6b97593cbd
commit 7968a2c148

@ -377,7 +377,7 @@ int sys_getdents(unsigned int fd, struct dirent *dirp, unsigned int count)
dirp_tmp->d_ino = d_entry->inode;
dirp_tmp->d_off = 0;
dirp_tmp->d_reclen = linux_dirent_size;
strcpy(dirp_tmp->d_name,dir_entry->name);
strcpy(dirp_tmp->d_name,d_entry->name);
//将dirp_tmp的信息转化成char类型并存到buf //dirp_tmp(linux_dirent)--->buf(char)
memcpy(buf,dirp_tmp,linux_dirent_size);

Loading…
Cancel
Save