diff --git a/sys.c_1.1 b/sys.c_1.1 index ff1c184..169bd8a 100644 --- a/sys.c_1.1 +++ b/sys.c_1.1 @@ -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);