… | |
… | |
53 | #include <uudeview.h> |
53 | #include <uudeview.h> |
54 | #include <uuint.h> |
54 | #include <uuint.h> |
55 | #include <fptools.h> |
55 | #include <fptools.h> |
56 | #include <uustring.h> |
56 | #include <uustring.h> |
57 | |
57 | |
58 | char * uunconc_id = "$Id: uunconc.c,v 1.20 2010/12/14 21:19:33 root Exp $"; |
58 | char * uunconc_id = "$Id: uunconc.c,v 1.21 2011/05/27 13:52:27 root Exp $"; |
59 | |
59 | |
60 | /* for braindead systems */ |
60 | /* for braindead systems */ |
61 | #ifndef SEEK_SET |
61 | #ifndef SEEK_SET |
62 | #ifdef L_BEGIN |
62 | #ifdef L_BEGIN |
63 | #define SEEK_SET L_BEGIN |
63 | #define SEEK_SET L_BEGIN |
… | |
… | |
1133 | } |
1133 | } |
1134 | |
1134 | |
1135 | tc = tf = vlc = 0; |
1135 | tc = tf = vlc = 0; |
1136 | lc[0] = lc[1] = 0; |
1136 | lc[0] = lc[1] = 0; |
1137 | } |
1137 | } |
1138 | else if ((*state == END) && |
1138 | else if ((*state == END || *state == DATA) && |
1139 | (method == UU_ENCODED || method == XX_ENCODED)) { |
1139 | (method == UU_ENCODED || method == XX_ENCODED)) { |
1140 | if (strncmp (line, "end", 3) == 0) { |
1140 | if (strncmp (line, "end", 3) == 0) { |
1141 | *state = DONE; |
1141 | *state = DONE; |
1142 | break; |
1142 | break; |
1143 | } |
1143 | } |