summaryrefslogtreecommitdiff
path: root/ext/intl/locale/locale_methods.c
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2009-07-02 22:36:16 +0000
committerStanislav Malyshev <stas@php.net>2009-07-02 22:36:16 +0000
commit9937006ac56a5a2e08f03809b6e4d4d208774abd (patch)
tree8062e5cb602cc48529f154bd78138329cad183d9 /ext/intl/locale/locale_methods.c
parent305f4984d2441e3413283fd13e8bbc082e4f9564 (diff)
downloadphp-git-9937006ac56a5a2e08f03809b6e4d4d208774abd.tar.gz
bugfix
Diffstat (limited to 'ext/intl/locale/locale_methods.c')
-rwxr-xr-xext/intl/locale/locale_methods.c2
1 files changed, 1 insertions, 1 deletions
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)) ){