Improve include meta-element to load included resourced from the directory relative to the included XML file, fully backwards compatible.
PiperOrigin-RevId: 608312069 Change-Id: I80eadb32d7d78fb35bd24975f2e514021c2aa009
This commit is contained in:
committed by
Copybara-Service
parent
b77dfc683a
commit
24eb4c9f09
@@ -219,7 +219,7 @@ int mju_dirnamelen(const char* path) {
|
||||
}
|
||||
|
||||
int pos = -1;
|
||||
for (int i = 0; path[i] && i >= 0; ++i) {
|
||||
for (int i = 0; path[i]; ++i) {
|
||||
if (path[i] == '/' || path[i] == '\\') {
|
||||
pos = i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user