Changeset f5f1e1c in mainline
- Timestamp:
- 2011-07-18T11:32:12Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5dac8ab
- Parents:
- 1f78546
- Location:
- uspace/srv/fs/exfat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat_directory.c
r1f78546 rf5f1e1c 180 180 181 181 182 int exfat_directory_read_file(exfat_directory_t *di, char *name, exfat_file_dentry_t *df, exfat_stream_dentry_t *ds) 182 int exfat_directory_read_file(exfat_directory_t *di, char *name, size_t size, 183 exfat_file_dentry_t *df, exfat_stream_dentry_t *ds) 183 184 { 184 185 uint16_t wname[EXFAT_FILENAME_LEN+1]; … … 201 202 return ENOENT; 202 203 *ds = d->stream; 203 /*204 if (ds->name_size > EXFAT_FILENAME_LEN)204 205 if (ds->name_size > size) 205 206 return EOVERFLOW; 206 */ 207 207 208 for (i=0; i<df->count-1; i++) { 208 209 rc = exfat_directory_next(di); … … 216 217 exfat_dentry_get_name(&d->name, ds->name_size, wname, &offset); 217 218 } 218 rc = utf16_to_str(name, EXFAT_FILENAME_LEN, wname);219 rc = utf16_to_str(name, size, wname); 219 220 if (rc != EOK) 220 221 return rc; -
uspace/srv/fs/exfat/exfat_directory.h
r1f78546 rf5f1e1c 63 63 exfat_dentry_clsf_t type, exfat_dentry_t **d); 64 64 65 extern int exfat_directory_read_file(exfat_directory_t *di, char *name, exfat_file_dentry_t *df,66 exfat_stream_dentry_t *ds);65 extern int exfat_directory_read_file(exfat_directory_t *di, char *name, 66 size_t size, exfat_file_dentry_t *df, exfat_stream_dentry_t *ds); 67 67 68 68
Note:
See TracChangeset
for help on using the changeset viewer.