From 9937006ac56a5a2e08f03809b6e4d4d208774abd Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Thu, 2 Jul 2009 22:36:16 +0000 Subject: bugfix --- ext/intl/locale/locale_methods.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/intl/locale/locale_methods.c') diff --git a/ext/intl/locale/locale_methods.c b/ext/intl/locale/locale_methods.c index 94302aeae7..f3401e5e0d 100755 --- a/ext/intl/locale/locale_methods.c +++ b/ext/intl/locale/locale_methods.c @@ -147,7 +147,7 @@ static int getStrrtokenPos(char* str, int savedPos) int result =-1; int i; - for(i=savedPos; i>=0; i--) { + for(i=savedPos-1; i>=0; i--) { if(isIDSeparator(*(str+i)) ){ /* delimiter found; check for singleton */ if(i>=2 && isIDSeparator(*(str+i-2)) ){ -- cgit v1.2.1