summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2012-11-23 13:56:07 +0100
committerFlorent Le Coz <louiz@louiz.org>2012-11-30 15:14:21 +0100
commit5db91443033d10af188206f6d5dc705bac22b0e8 (patch)
tree264265b7099903f8ca8dccf4b7cab0508c82a51c /src
parent9e0fe54a496fa71b9bef87c1c19650dcc61060c5 (diff)
downloadpoezio-5db91443033d10af188206f6d5dc705bac22b0e8.tar.gz
poezio-5db91443033d10af188206f6d5dc705bac22b0e8.tar.bz2
poezio-5db91443033d10af188206f6d5dc705bac22b0e8.tar.xz
poezio-5db91443033d10af188206f6d5dc705bac22b0e8.zip
Fix a byte value in the utf-8 decoding in poopt.
Diffstat (limited to 'src')
-rw-r--r--src/pooptmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pooptmodule.c b/src/pooptmodule.c
index 226d7182..7d40398d 100644
--- a/src/pooptmodule.c
+++ b/src/pooptmodule.c
@@ -98,7 +98,7 @@ static PyObject *poopt_cut_text(PyObject *self, PyObject *args)
bpos += 2;
else if (buffer[bpos] >= 224 && buffer[bpos] <= 239)
bpos += 3;
- else if (buffer[bpos] >= 240 && buffer[bpos] <= 244)
+ else if (buffer[bpos] >= 240 && buffer[bpos] <= 247)
bpos += 4;
else
return NULL;