Subversion Repositories HelenOS

Rev

Rev 4264 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4264 Rev 4266
Line 91... Line 91...
91
    char *dirs[255];
91
    char *dirs[255];
92
    unsigned int absolute = 0, i = 0, ret = 0;
92
    unsigned int absolute = 0, i = 0, ret = 0;
93
 
93
 
94
    /* Its a good idea to allocate path, plus we (may) need a copy of
94
    /* Its a good idea to allocate path, plus we (may) need a copy of
95
     * path to tokenize if parents are specified */
95
     * path to tokenize if parents are specified */
96
    if (NULL == (tmp = strdup(path))) {
96
    if (NULL == (tmp = str_dup(path))) {
97
        cli_error(CL_ENOMEM, "%s: path too big?", cmdname);
97
        cli_error(CL_ENOMEM, "%s: path too big?", cmdname);
98
        return 1;
98
        return 1;
99
    }
99
    }
100
 
100
 
101
    if (NULL == (wdp = (char *) malloc(PATH_MAX))) {
101
    if (NULL == (wdp = (char *) malloc(PATH_MAX))) {