Changeset 4cc0c9ee in mainline for uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
- Timestamp:
- 2009-01-22T14:22:12Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bf226890
- Parents:
- fc11b8a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
rfc11b8a r4cc0c9ee 94 94 /* Its a good idea to allocate path, plus we (may) need a copy of 95 95 * path to tokenize if parents are specified */ 96 if (NULL == (tmp = cli_strdup(path))) {96 if (NULL == (tmp = strdup(path))) { 97 97 cli_error(CL_ENOMEM, "%s: path too big?", cmdname); 98 98 return 1; … … 129 129 130 130 /* TODO: Canonify the path prior to tokenizing it, see below */ 131 dirs[i] = cli_strtok(tmp, "/");131 dirs[i] = strtok(tmp, "/"); 132 132 while (dirs[i] && i < 255) 133 dirs[++i] = cli_strtok(NULL, "/");133 dirs[++i] = strtok(NULL, "/"); 134 134 135 135 if (NULL == dirs[0])
Note:
See TracChangeset
for help on using the changeset viewer.