Changeset 92fd52d7 in mainline for uspace/app/bdsh/exec.c
- Timestamp:
- 2009-04-09T21:16:50Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7afb4a5
- Parents:
- a2c58f6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/exec.c
ra2c58f6 r92fd52d7 72 72 char *path[PATH_MAX]; 73 73 int n = 0, i = 0; 74 size_t x = str len(cmd) + 2;74 size_t x = str_size(cmd) + 2; 75 75 76 76 found = (char *)malloc(PATH_MAX); … … 86 86 path[n] = strtok(path_tok, PATH_DELIM); 87 87 while (NULL != path[n]) { 88 if ((str len(path[n]) + x ) > PATH_MAX) {88 if ((str_size(path[n]) + x ) > PATH_MAX) { 89 89 cli_error(CL_ENOTSUP, 90 90 "Segment %d of path is too large, search ends at segment %d",
Note:
See TracChangeset
for help on using the changeset viewer.