Subversion Repositories HelenOS

Rev

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

Rev 4193 Rev 4207
Line 52... Line 52...
52
    size_t max_len;
52
    size_t max_len;
53
   
53
   
54
    /* Find the first space. */
54
    /* Find the first space. */
55
    end = strchr(cmd_line, ' ');
55
    end = strchr(cmd_line, ' ');
56
    if (end == NULL)
56
    if (end == NULL)
57
        end = cmd_line + strlen(cmd_line);
57
        end = cmd_line + str_size(cmd_line);
58
   
58
   
59
    /*
59
    /*
60
     * Find last occurence of '/' before 'end'. If found, place start at
60
     * Find last occurence of '/' before 'end'. If found, place start at
61
     * next character. Otherwise, place start at beginning of buffer.
61
     * next character. Otherwise, place start at beginning of buffer.
62
     */
62
     */