diff options
Diffstat (limited to 'backends/platform/ds/arm9/source/wordcompletion.cpp')
-rw-r--r-- | backends/platform/ds/arm9/source/wordcompletion.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/backends/platform/ds/arm9/source/wordcompletion.cpp b/backends/platform/ds/arm9/source/wordcompletion.cpp index ff52572a40..60ac673b69 100644 --- a/backends/platform/ds/arm9/source/wordcompletion.cpp +++ b/backends/platform/ds/arm9/source/wordcompletion.cpp @@ -70,7 +70,6 @@ void sortAutoCompleteWordList() { // Sends the current available words to the virtual keyboard code for display bool findWordCompletions(char* input) { - char testWord[32]; int min = 0; int max = wordBufferPtrPos - 1; char* word; @@ -136,7 +135,7 @@ bool findWordCompletions(char* input) bool match = true; - for (int r = 0; r < strlen(partialWord); r++) { + for (int r = 0; partialWord[r] != 0; r++) { if (word[r] != partialWord[r]) { match = false; break; @@ -155,7 +154,7 @@ bool findWordCompletions(char* input) do { - for (int r = 0; r < strlen(partialWord); r++) { + for (int r = 0; partialWord[r] != 0; r++) { if (word[r] != partialWord[r]) { match = false; break; |