Fixing bug in GTRANS

ugfx_release_2.6
Joel Bodenmann 2016-02-09 12:53:38 +01:00
parent 39c13d1645
commit 249ffe781f
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ const char* gtransString(const char* string)
size_t i = 0;
while (1) {
// Prevent overflow
if (i >= _languageBase->numEntries-1) {
if (i >= _languageBase->numEntries) {
return string;
}
@ -43,7 +43,7 @@ const char* gtransString(const char* string)
}
// Make sure that the index exists in the current language table
if (i >= _languageCurrent->numEntries-1) {
if (i >= _languageCurrent->numEntries) {
return string;
}