Changeset 4cc0c9ee in mainline for uspace/app/bdsh/exec.c
- Timestamp:
- 2009-01-22T14:22:12Z (15 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/exec.c
rfc11b8a r4cc0c9ee 81 81 } 82 82 83 path_tok = cli_strdup(PATH);83 path_tok = strdup(PATH); 84 84 85 85 /* Extract the PATH env to a path[] array */ 86 path[n] = cli_strtok(path_tok, PATH_DELIM);86 path[n] = strtok(path_tok, PATH_DELIM); 87 87 while (NULL != path[n]) { 88 88 if ((strlen(path[n]) + x ) > PATH_MAX) { … … 92 92 break; 93 93 } 94 path[++n] = cli_strtok(NULL, PATH_DELIM);94 path[++n] = strtok(NULL, PATH_DELIM); 95 95 } 96 96 … … 115 115 char *tmp; 116 116 117 tmp = cli_strdup(find_command(cmd));117 tmp = strdup(find_command(cmd)); 118 118 free(found); 119 119
Note:
See TracChangeset
for help on using the changeset viewer.