Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/mfs/mfs_dentry.c

    rf7d6b30 r7a46bfe  
    7676                d_info->d_inum = conv32(sbi->native, d3->d_inum);
    7777                memcpy(d_info->d_name, d3->d_name, MFS3_MAX_NAME_LEN);
    78                 d_info->d_name[MFS3_MAX_NAME_LEN] = 0;
    7978        } else {
    8079                const int namelen = longnames ? MFS_L_MAX_NAME_LEN :
     
    8786                d_info->d_inum = conv16(sbi->native, d->d_inum);
    8887                memcpy(d_info->d_name, d->d_name, namelen);
    89                 d_info->d_name[namelen] = 0;
    9088        }
    9189
     
    251249        d_info.d_inum = d_inum;
    252250        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;
    255252
    256253        r = mfs_write_dentry(&d_info);
Note: See TracChangeset for help on using the changeset viewer.