Changeset 4339f09 in mainline for uspace/app/bdsh/cmds/modules/rm/rm.c
- Timestamp:
- 2013-06-28T07:46:31Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e52b4b5
- Parents:
- 3de67b4c (diff), dba3e2c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/rm/rm.c
r3de67b4c r4339f09 99 99 if (NULL == (rm->nwd = (char *) malloc(PATH_MAX))) 100 100 return 0; 101 memset(rm->nwd, 0, sizeof(rm->nwd));101 memset(rm->nwd, 0, PATH_MAX); 102 102 103 103 if (NULL == (rm->owd = (char *) malloc(PATH_MAX))) 104 104 return 0; 105 memset(rm->owd, 0, sizeof(rm->owd));105 memset(rm->owd, 0, PATH_MAX); 106 106 107 107 if (NULL == (rm->cwd = (char *) malloc(PATH_MAX))) 108 108 return 0; 109 memset(rm->cwd, 0, sizeof(rm->cwd));109 memset(rm->cwd, 0, PATH_MAX); 110 110 111 111 chdir("."); … … 298 298 break; 299 299 } 300 memset(buff, 0, sizeof(buff));300 memset(buff, 0, len); 301 301 snprintf(buff, len, "%s", argv[i]); 302 302
Note:
See TracChangeset
for help on using the changeset viewer.