X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fimap_fetch.c;h=3d59567f39c011e408533365e543fa293013e8c1;hb=119f5ee3d14919e18afc159074295c51e5f911ba;hp=cee9785c542a2804022a9dfa7480a5179ca54dd1;hpb=63cb2f4bcd0510c1c5052d477095c25e034a960e;p=citadel.git diff --git a/citadel/imap_fetch.c b/citadel/imap_fetch.c index cee9785c5..3d59567f3 100644 --- a/citadel/imap_fetch.c +++ b/citadel/imap_fetch.c @@ -322,12 +322,12 @@ void imap_output_envelope_from(struct CtdlMessage *msg) { * fields. But we can use it for "To" and possibly others. */ void imap_output_envelope_addr(char *addr) { - char individual_addr[SIZ]; + char individual_addr[256]; int num_addrs; int i; - char user[SIZ]; - char node[SIZ]; - char name[SIZ]; + char user[256]; + char node[256]; + char name[256]; if (addr == NULL) { cprintf("NIL "); @@ -346,7 +346,7 @@ void imap_output_envelope_addr(char *addr) { /* Output them one by one. */ for (i=0; i0) have_cbtype = 1; if (have_cbtype) { - extract_token(cbmaintype, cbtype, 0, '/'); - extract_token(cbsubtype, cbtype, 1, '/'); + extract_token(cbmaintype, cbtype, 0, '/', sizeof cbmaintype); + extract_token(cbsubtype, cbtype, 1, '/', sizeof cbsubtype); } else { strcpy(cbmaintype, "TEXT"); @@ -1122,15 +1122,15 @@ void imap_pick_range(char *supplied_range, int is_uid) { */ num_sets = num_tokens(actual_range, ','); for (s=0; s= 2) { - extract_token(histr, setstr, 1, ':'); + extract_token(histr, setstr, 1, ':', sizeof histr); if (!strcmp(histr, "*")) snprintf(histr, sizeof histr, "%ld", LONG_MAX); } else { - strcpy(histr, lostr); + safestrncpy(histr, lostr, sizeof histr); } lo = atol(lostr); hi = atol(histr);