Rev 4011 | Rev 4220 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4011 | Rev 4207 | ||
---|---|---|---|
Line 250... | Line 250... | ||
250 | index_t i, j; |
250 | index_t i, j; |
251 | 251 | ||
252 | if (path[0] != '/') |
252 | if (path[0] != '/') |
253 | return NULL; |
253 | return NULL; |
254 | 254 | ||
255 | for (i = 1; i < strlen(path) && node; i = j + 1) { |
255 | for (i = 1; i < str_size(path) && node; i = j + 1) { |
256 | for (j = i; j < strlen(path) && path[j] != '/'; j++) |
256 | for (j = i; j < str_size(path) && path[j] != '/'; j++) |
257 | ; |
257 | ; |
258 | if (i == j) /* skip extra slashes */ |
258 | if (i == j) /* skip extra slashes */ |
259 | continue; |
259 | continue; |
260 | 260 | ||
261 | memcpy(buf, &path[i], j - i); |
261 | memcpy(buf, &path[i], j - i); |