mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-03 14:09:57 +00:00
tz_manager: Fix off-by-one error
This commit is contained in:
parent
de1fe66d81
commit
63c51abe42
1 changed files with 4 additions and 4 deletions
|
@ -130,10 +130,10 @@ static constexpr int GetQZName(const char* name, int offset, char delimiter) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static constexpr int GetTZName(const char* name, int offset) {
|
static constexpr int GetTZName(const char* name, int offset) {
|
||||||
for (char value{name[offset]};
|
char c;
|
||||||
value != '\0' && !IsDigit(value) && value != ',' && value != '-' && value != '+';
|
|
||||||
offset++) {
|
while ((c = name[offset]) != '\0' && !IsDigit(c) && c != ',' && c != '-' && c != '+') {
|
||||||
value = name[offset];
|
++offset;
|
||||||
}
|
}
|
||||||
return offset;
|
return offset;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue