summaryrefslogtreecommitdiff
path: root/ext/xml
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2008-01-30 08:52:17 +0000
committerRasmus Lerdorf <rasmus@php.net>2008-01-30 08:52:17 +0000
commit71efa394a6e17fa2552ccbbf454bb0f33429a8b2 (patch)
tree7102e127e9ad2b0e703c04e25ba4d7613bd2c7dd /ext/xml
parent1a416113724f6d46d577adf4c3c711295c859130 (diff)
downloadphp-git-71efa394a6e17fa2552ccbbf454bb0f33429a8b2.tar.gz
fix typo
Diffstat (limited to 'ext/xml')
-rw-r--r--ext/xml/xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/xml/xml.c b/ext/xml/xml.c
index f605778ce9..52d0a234d5 100644
--- a/ext/xml/xml.c
+++ b/ext/xml/xml.c
@@ -595,7 +595,7 @@ PHPAPI char *xml_utf8_decode(const XML_Char *s, int len, int *newlen, const XML_
s += 3;
pos -= 3;
} else if (c >= 0xc0) { /* two bytes encoded, 11 bits */
- if(pos-3 >= 0) {
+ if(pos-2 >= 0) {
c = ((s[0]&63)<<6) | (s[1]&63);
} else {
c = '?';