… | |
… | |
52 | #include <uudeview.h> |
52 | #include <uudeview.h> |
53 | #include <uuint.h> |
53 | #include <uuint.h> |
54 | #include <fptools.h> |
54 | #include <fptools.h> |
55 | #include <uustring.h> |
55 | #include <uustring.h> |
56 | |
56 | |
57 | char * uunconc_id = "$Id: uunconc.c,v 1.6 2002/03/31 22:11:58 root Exp $"; |
57 | char * uunconc_id = "$Id: uunconc.c,v 1.7 2002/04/05 21:56:57 root Exp $"; |
58 | |
58 | |
59 | /* for braindead systems */ |
59 | /* for braindead systems */ |
60 | #ifndef SEEK_SET |
60 | #ifndef SEEK_SET |
61 | #ifdef L_BEGIN |
61 | #ifdef L_BEGIN |
62 | #define SEEK_SET L_BEGIN |
62 | #define SEEK_SET L_BEGIN |
… | |
… | |
647 | j -= 4; |
647 | j -= 4; |
648 | } |
648 | } |
649 | } |
649 | } |
650 | else if (method == B64ENCODED) { |
650 | else if (method == B64ENCODED) { |
651 | if (leftover) { |
651 | if (leftover) { |
652 | strcpy (uuncdl_fulline+leftover, s); |
652 | strncpy (uuncdl_fulline+leftover, s, 1200 - leftover); |
|
|
653 | uuncdl_fulline[1200 - 1] = 0; |
|
|
654 | |
653 | leftover = 0; |
655 | leftover = 0; |
654 | s = uuncdl_fulline; |
656 | s = uuncdl_fulline; |
655 | } |
657 | } |
656 | |
658 | |
657 | while ((z1 = B64xlat[ACAST(*s)]) != -1) { |
659 | while ((z1 = B64xlat[ACAST(*s)]) != -1) { |
… | |
… | |
677 | while (B64xlat[ACAST(*s)] != -1) |
679 | while (B64xlat[ACAST(*s)] != -1) |
678 | uuncdl_fulline[leftover++] = *s++; |
680 | uuncdl_fulline[leftover++] = *s++; |
679 | } |
681 | } |
680 | else if (method == BH_ENCODED) { |
682 | else if (method == BH_ENCODED) { |
681 | if (leftover) { |
683 | if (leftover) { |
682 | strcpy (uuncdl_fulline+leftover, s); |
684 | strncpy (uuncdl_fulline+leftover, s, 1200 - leftover); |
|
|
685 | uuncdl_fulline[1200 - 1] = 0; |
683 | leftover = 0; |
686 | leftover = 0; |
684 | s = uuncdl_fulline; |
687 | s = uuncdl_fulline; |
685 | } |
688 | } |
686 | else if (*s == ':') |
689 | else if (*s == ':') |
687 | s++; |
690 | s++; |