break;
end = lines.rfind("/", end);
/* skip a potential prefix to the path */
- int path_prefix = lines.find("/image/", start);
- if (path_prefix != std::string::npos && ((path_prefix + 6) < end))
- start = path_prefix + 6;
+ unsigned int path_prefix = lines.find("/usr/", start);
+ if (path_prefix != std::string::npos && path_prefix < end)
+ start = path_prefix;
if (end == std::string::npos)
break;