Subversion Repositories HelenOS

Rev

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

Rev 3011 Rev 3424
Line 158... Line 158...
158
    while (next <= last && ops->has_children(cur)) {
158
    while (next <= last && ops->has_children(cur)) {
159
        /* collect the component */
159
        /* collect the component */
160
        len = 0;
160
        len = 0;
161
        while ((next <= last) &&  (ops->plb_get_char(next) != '/')) {
161
        while ((next <= last) &&  (ops->plb_get_char(next) != '/')) {
162
            if (len + 1 == NAME_MAX) {
162
            if (len + 1 == NAME_MAX) {
163
                /* comopnent length overflow */
163
                /* component length overflow */
164
                ipc_answer_0(rid, ENAMETOOLONG);
164
                ipc_answer_0(rid, ENAMETOOLONG);
165
                goto out;
165
                goto out;
166
            }
166
            }
167
            component[len++] = ops->plb_get_char(next);
167
            component[len++] = ops->plb_get_char(next);
168
            next++; /* process next character */
168
            next++; /* process next character */