From: Jack Jansen Date: Thu, 31 Aug 1995 13:44:23 +0000 (+0000) Subject: Obscure bugfix X-Git-Tag: v1.3~176 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0223aa11d886e04c29e45eb01a37c8d59c90f499;p=thirdparty%2FPython%2Fcpython.git Obscure bugfix --- diff --git a/Modules/binascii.c b/Modules/binascii.c index bf26e0c5a1cc..7450349d8999 100644 --- a/Modules/binascii.c +++ b/Modules/binascii.c @@ -383,11 +383,8 @@ binascii_rlecode_hqx(self, args) inend 3 && inend-in != RUNCHAR ) { - /* More than 3 in a row. Output RLE. - ** The special case of exactly 0x90 repeats will result in a single - ** byte now and a 0x8f repeat next time around - */ + if ( inend - in > 3 ) { + /* More than 3 in a row. Output RLE. */ *out_data++ = ch; *out_data++ = RUNCHAR; *out_data++ = inend-in;