mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 14:13:09 +00:00
parent
df0bbe0b0e
commit
77c00bc26d
@ -104,7 +104,13 @@ class Fs_log::Root_component :
|
||||
if ((strcmp((dir_path+label_len)-3, " ->", 4) == 0) ||
|
||||
(strcmp((dir_path+label_len)-4, " -> ", 5) == 0)) {
|
||||
|
||||
for (size_t i = 0; *(label_str+i); ++i) {
|
||||
for (size_t i = 0;; ++i) {
|
||||
if (label_prefix[i] == '\0') {
|
||||
strncpy(dir_path+1, label_str, MAX_PATH_LEN-1);
|
||||
label_prefix = nullptr;
|
||||
break;
|
||||
}
|
||||
|
||||
if (strcmp(label_prefix+i, " -> ", 4))
|
||||
continue;
|
||||
|
||||
@ -112,8 +118,6 @@ class Fs_log::Root_component :
|
||||
label_prefix += i+4;
|
||||
break;
|
||||
}
|
||||
|
||||
if (*label_prefix == ' ') ++label_prefix;
|
||||
}
|
||||
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user