Changeset 92fd52d7 in mainline for uspace/app/bdsh/exec.c


Ignore:
Timestamp:
2009-04-09T21:16:50Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7afb4a5
Parents:
a2c58f6
Message:

Nuke strcpy() and strcmp().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/exec.c

    ra2c58f6 r92fd52d7  
    7272        char *path[PATH_MAX];
    7373        int n = 0, i = 0;
    74         size_t x = strlen(cmd) + 2;
     74        size_t x = str_size(cmd) + 2;
    7575
    7676        found = (char *)malloc(PATH_MAX);
     
    8686        path[n] = strtok(path_tok, PATH_DELIM);
    8787        while (NULL != path[n]) {
    88                 if ((strlen(path[n]) + x ) > PATH_MAX) {
     88                if ((str_size(path[n]) + x ) > PATH_MAX) {
    8989                        cli_error(CL_ENOTSUP,
    9090                                "Segment %d of path is too large, search ends at segment %d",
Note: See TracChangeset for help on using the changeset viewer.