Fix a byte value in the utf-8 decoding in poopt.

This commit is contained in:
Florent Le Coz 2012-11-23 13:56:07 +01:00
parent 9e0fe54a49
commit 5db9144303

View file

@ -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;