… | |
… | |
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.5 2002/03/31 20:08:42 root Exp $"; |
57 | char * uunconc_id = "$Id: uunconc.c,v 1.6 2002/03/31 22:11:58 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 |
… | |
… | |
259 | |
259 | |
260 | while (*p1) { |
260 | while (*p1) { |
261 | if (*p1 == '<') { |
261 | if (*p1 == '<') { |
262 | if ((_FP_strnicmp (p1, "<ahref=", 7) == 0 || |
262 | if ((_FP_strnicmp (p1, "<ahref=", 7) == 0 || |
263 | _FP_strnicmp (p1, "<a href=",8) == 0) && |
263 | _FP_strnicmp (p1, "<a href=",8) == 0) && |
264 | (_FP_strstr (p1, "</a>") != 0 || FP_strstr (p1, "</A>") != 0)) { |
264 | (_FP_strstr (p1, "</a>") != 0 || _FP_strstr (p1, "</A>") != 0)) { |
265 | while (*p1 && *p1!='>') p1++; |
265 | while (*p1 && *p1!='>') p1++; |
266 | if (*p1=='\0' || *(p1+1)!='<') return 0; |
266 | if (*p1=='\0' || *(p1+1)!='<') return 0; |
267 | p1++; |
267 | p1++; |
268 | while (*p1 && (*p1!='<' || _FP_strnicmp(p1,"</a>",4)!=0)) { |
268 | while (*p1 && (*p1!='<' || _FP_strnicmp(p1,"</a>",4)!=0)) { |
269 | *p2++ = *p1++; |
269 | *p2++ = *p1++; |