ext/riconv.c in rjb-1.6.9 vs ext/riconv.c in rjb-1.7.0
- old
+ new
@@ -193,10 +193,10 @@
}
static int contains_auxchar(const unsigned char* p)
{
while (*p)
{
- if (*p == 0xed && *(p + 1) && *(p + 1))
+ if (*p == 0xed && *(p + 1) && *(p + 2))
{
#if defined(DEBUG)
printf("find %02x %02x %02x %02x %02x %02x\n", *p, *(p + 1), *(p + 2), *(p + 3), *(p + 4), *(p + 5));
#endif
if ((*(p + 1) & 0xa0) == 0xa0 && (*(p + 2) & 0xb0) == 0xb0)