Changes in uspace/srv/fs/exfat/exfat_dentry.c [9d58539:f3504c1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat_dentry.c
r9d58539 rf3504c1 90 90 void exfat_dentry_get_name(const exfat_name_dentry_t *name, size_t size, uint16_t *dst, size_t *offset) 91 91 { 92 size_t i = 0; 92 size_t i = 0; 93 93 while (i < EXFAT_NAME_PART_LEN && *offset < size) { 94 94 dst[*offset] = uint16_t_le2host(name->name[i]); … … 97 97 } 98 98 dst[*offset] = '\0'; 99 } 100 101 void exfat_dentry_get_vollabel(const exfat_vollabel_dentry_t *vollabel, 102 size_t size, uint16_t *dst) 103 { 104 size_t i = 0; 105 while (i < EXFAT_VOLLABEL_LEN && i < vollabel->size && i < size) { 106 dst[i] = uint16_t_le2host(vollabel->label[i]); 107 i++; 108 } 109 dst[i] = '\0'; 99 110 } 100 111 … … 130 141 } 131 142 132 size_t exfat_utf16_length(const uint16_t *wstr)133 {134 size_t len = 0;135 136 while (*wstr++ != 0)137 len++;138 139 return len;140 }141 142 143 /** 143 144 * @}
Note:
See TracChangeset
for help on using the changeset viewer.