Changes in uspace/srv/fs/fat/fat_ops.c [5ca5eaa7:c7bbf029] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_ops.c
r5ca5eaa7 rc7bbf029 55 55 #include <sys/mman.h> 56 56 #include <align.h> 57 #include <malloc.h> 57 58 58 59 #define FAT_NODE(node) ((node) ? (fat_node_t *) (node)->data : NULL) … … 722 723 (str_cmp((char *) d->name, FAT_NAME_DOT)) == 0) { 723 724 memset(d, 0, sizeof(fat_dentry_t)); 724 str_cpy((char *) d->name, 8, FAT_NAME_DOT);725 str_cpy((char *) d->ext, 3, FAT_EXT_PAD);725 memcpy(d->name, FAT_NAME_DOT, FAT_NAME_LEN); 726 memcpy(d->ext, FAT_EXT_PAD, FAT_EXT_LEN); 726 727 d->attr = FAT_ATTR_SUBDIR; 727 728 d->firstc = host2uint16_t_le(childp->firstc); … … 732 733 (str_cmp((char *) d->name, FAT_NAME_DOT_DOT) == 0)) { 733 734 memset(d, 0, sizeof(fat_dentry_t)); 734 str_cpy((char *) d->name, 8, FAT_NAME_DOT_DOT);735 str_cpy((char *) d->ext, 3, FAT_EXT_PAD);735 memcpy(d->name, FAT_NAME_DOT_DOT, FAT_NAME_LEN); 736 memcpy(d->ext, FAT_EXT_PAD, FAT_EXT_LEN); 736 737 d->attr = FAT_ATTR_SUBDIR; 737 738 d->firstc = (parentp->firstc == FAT_CLST_ROOT) ?
Note:
See TracChangeset
for help on using the changeset viewer.