Changeset 14c29ba in mainline for uspace/app/mkminix/mkminix.c
- Timestamp:
- 2011-03-11T18:41:48Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ccbc5b56
- Parents:
- b84175a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkminix/mkminix.c
rb84175a r14c29ba 45 45 #include <sys/typefmt.h> 46 46 #include <inttypes.h> 47 #include <str.h>48 47 #include <getopt.h> 49 48 #include <mem.h> … … 284 283 285 284 root_block = (void *) malloc(MFS_MIN_BLOCKSIZE); 285 memset(root_block, 0x00, MFS_MIN_BLOCKSIZE); 286 286 287 287 if (!root_block) … … 293 293 294 294 dentry->d_inum = MFS_ROOT_INO; 295 str_cpy(dentry->d_name, 1, ".");295 memcpy(dentry->d_name, ".\0", 2); 296 296 297 297 NEXT_DENTRY(dentry, sb->dirsize); 298 298 299 299 dentry->d_inum = MFS_ROOT_INO; 300 str_cpy(dentry->d_name, 2, "..");300 memcpy(dentry->d_name, "..\0", 3); 301 301 } else { 302 302 /*Directory entries for V3 filesystem*/ … … 304 304 305 305 dentry->d_inum = MFS_ROOT_INO; 306 str_cpy(dentry->d_name, 1, ".");306 memcpy(dentry->d_name, ".\0", 2); 307 307 308 308 NEXT_DENTRY(dentry, sb->dirsize); 309 309 310 310 dentry->d_inum = MFS_ROOT_INO; 311 str_cpy(dentry->d_name, 2, "..");311 memcpy(dentry->d_name, "..\0", 3); 312 312 } 313 313
Note:
See TracChangeset
for help on using the changeset viewer.