Changes in uspace/srv/fs/mfs/mfs_dentry.c [f7d6b30:7a46bfe] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs_dentry.c
rf7d6b30 r7a46bfe 76 76 d_info->d_inum = conv32(sbi->native, d3->d_inum); 77 77 memcpy(d_info->d_name, d3->d_name, MFS3_MAX_NAME_LEN); 78 d_info->d_name[MFS3_MAX_NAME_LEN] = 0;79 78 } else { 80 79 const int namelen = longnames ? MFS_L_MAX_NAME_LEN : … … 87 86 d_info->d_inum = conv16(sbi->native, d->d_inum); 88 87 memcpy(d_info->d_name, d->d_name, namelen); 89 d_info->d_name[namelen] = 0;90 88 } 91 89 … … 251 249 d_info.d_inum = d_inum; 252 250 memcpy(d_info.d_name, d_name, name_len); 253 if (name_len < sbi->max_name_len) 254 d_info.d_name[name_len] = 0; 251 d_info.d_name[name_len] = 0; 255 252 256 253 r = mfs_write_dentry(&d_info);
Note:
See TracChangeset
for help on using the changeset viewer.