martin 99/04/17 15:08:00
Modified: src/main util.c
Log:
Fix EBCDIC branch of ap_uudecode() which was broken by last commit.
Revision Changes Path
1.159 +4 -0 apache-1.3/src/main/util.c
Index: util.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/main/util.c,v
retrieving revision 1.158
retrieving revision 1.159
diff -u -r1.158 -r1.159
--- util.c 1999/04/17 16:09:25 1.158
+++ util.c 1999/04/17 22:07:59 1.159
@@ -2017,6 +2017,10 @@
*(bufout++) = os_toebcdic[
(unsigned char) (pr2six[os_toascii[bufin[1]]] << 4 |
pr2six[os_toascii[bufin[2]]] >> 2)];
}
+ if (nprbytes > 3) {
+ *(bufout++) = os_toebcdic[
+ (unsigned char) (pr2six[os_toascii[bufin[2]]] << 6 |
pr2six[os_toascii[bufin[3]]])];
+ }
#endif /*CHARSET_EBCDIC*/
nbytesdecoded -= (4 - nprbytes) & 3;