Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2846 → Rev 2845

/trunk/uspace/lib/libfs/libfs.c
148,6 → 148,7
 
void *par = NULL;
void *cur = ops->root_get(dev_handle);
void *tmp;
 
if (ops->plb_get_char(next) == '/')
next++; /* eat slash */
155,10 → 156,9
char component[NAME_MAX + 1];
int len = 0;
while (ops->has_children(cur) && next <= last) {
void *tmp;
 
/* collect the component */
while ((ops->plb_get_char(next) != '/') && (next <= last)) {
if (ops->plb_get_char(next) != '/') {
if (len + 1 == NAME_MAX) {
/* comopnent length overflow */
ipc_answer_0(rid, ENAMETOOLONG);
166,6 → 166,8
}
component[len++] = ops->plb_get_char(next);
next++; /* process next character */
if (next <= last)
continue;
}
 
assert(len);