diff options
author | Joel Bodenmann <joel@seriouslyembedded.com> | 2016-02-09 12:53:38 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@seriouslyembedded.com> | 2016-02-09 12:53:38 +0100 |
commit | 249ffe781f826b2d39d634023ea5334dc900df26 (patch) | |
tree | 72481063d82c37fcaf348b49b7f2ea6a18c276ac | |
parent | 39c13d16455d31040956952bce8e5fe3f81d161e (diff) | |
download | uGFX-249ffe781f826b2d39d634023ea5334dc900df26.tar.gz uGFX-249ffe781f826b2d39d634023ea5334dc900df26.tar.bz2 uGFX-249ffe781f826b2d39d634023ea5334dc900df26.zip |
Fixing bug in GTRANS
-rw-r--r-- | src/gtrans/gtrans.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gtrans/gtrans.c b/src/gtrans/gtrans.c index 21508567..07409838 100644 --- a/src/gtrans/gtrans.c +++ b/src/gtrans/gtrans.c @@ -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; } |