[Commits] SDL: Replaced strlen() with SDL_strlen() in IME test program.

libsdl.org revision control commits-owner at libsdl.org
Wed Mar 2 11:30:19 PST 2016


details:   https://hg.libsdl.org/SDL/rev/06085b9c73ef
changeset: 10097:06085b9c73ef
user:      Philipp Wiesemann <philipp.wiesemann at arcor.de>
date:      Wed Mar 02 20:24:43 2016 +0100
description:
Replaced strlen() with SDL_strlen() in IME test program.

diffstat:

 test/testime.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 330f500d5815 -r 06085b9c73ef test/testime.c
--- a/test/testime.c	Wed Feb 17 15:14:20 2016 +0800
+++ b/test/testime.c	Wed Mar 02 20:24:43 2016 +0100
@@ -159,7 +159,7 @@
             char *p = utf8_advance(markedText, cursor);
             char c = 0;
             if (!p)
-                p = &markedText[strlen(markedText)];
+                p = &markedText[SDL_strlen(markedText)];
 
             c = *p;
             *p = 0;


More information about the commits mailing list