Changeset f7d6b30 in mainline
- Timestamp:
- 2011-09-08T19:17:27Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5f509cc
- Parents:
- fb7e5a9a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs_dentry.c
rfb7e5a9a rf7d6b30 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; 78 79 } else { 79 80 const int namelen = longnames ? MFS_L_MAX_NAME_LEN : … … 86 87 d_info->d_inum = conv16(sbi->native, d->d_inum); 87 88 memcpy(d_info->d_name, d->d_name, namelen); 89 d_info->d_name[namelen] = 0; 88 90 } 89 91 … … 249 251 d_info.d_inum = d_inum; 250 252 memcpy(d_info.d_name, d_name, name_len); 251 d_info.d_name[name_len] = 0; 253 if (name_len < sbi->max_name_len) 254 d_info.d_name[name_len] = 0; 252 255 253 256 r = mfs_write_dentry(&d_info);
Note:
See TracChangeset
for help on using the changeset viewer.