From 766a685125f8b24aca96e5d95e5ec173d68a9140 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 24 Nov 2008 00:36:07 +0000 Subject: Nintedo DS specific code: Remove function call (strlen) from loop condition. (Spotted by Fingolfin - Thanks) svn-id: r35163 --- backends/platform/ds/arm9/source/touchkeyboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends/platform') diff --git a/backends/platform/ds/arm9/source/touchkeyboard.cpp b/backends/platform/ds/arm9/source/touchkeyboard.cpp index 81f0e40010..ea09f174c2 100644 --- a/backends/platform/ds/arm9/source/touchkeyboard.cpp +++ b/backends/platform/ds/arm9/source/touchkeyboard.cpp @@ -263,7 +263,7 @@ void drawAutoComplete() { int y = 12 + (r % 6) * 2; int x = 0 + ((r / 6) * 16); - for (int p = 0; p < (int)strlen(autoCompleteWord[r]); p++) { + for (int p = 0; autoCompleteWord[r][p] != 0; p++) { char c = autoCompleteWord[r][p]; int tile = c - 33 + (KEYBOARD_DATA_SIZE / 32); -- cgit v1.2.3