(decode_coding_iso_2022): Sanitize "if" condition.
authorhanda <handa>
Mon, 9 Aug 2010 07:47:08 +0000 (07:47 +0000)
committerhanda <handa>
Mon, 9 Aug 2010 07:47:08 +0000 (07:47 +0000)
src/coding.c

index 179ad69..5fb2c07 100644 (file)
@@ -1836,7 +1836,7 @@ decode_coding_iso_2022 (const unsigned char *source, int src_bytes, MText *mt,
                int bytes;
                int i;
 
-               if (! spec->flags & MCODING_ISO_DESIGNATION_CTEXT_EXT)
+               if (! (spec->flags & MCODING_ISO_DESIGNATION_CTEXT_EXT))
                  goto invalid_byte;
                /* Compound-text uses these escape sequences: