[BACK]Return to cmd2.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mail

Diff for /src/usr.bin/mail/cmd2.c between version 1.10 and 1.11

version 1.10, 2001/11/21 15:26:39 version 1.11, 2001/11/21 20:41:55
Line 466 
Line 466 
                         continue;                          continue;
                 h = hash(field);                  h = hash(field);
                 igp = (struct ignore *)calloc(1, sizeof(struct ignore));                  igp = (struct ignore *)calloc(1, sizeof(struct ignore));
                 igp->i_field = (char *)calloc(strlen(field) + 1, sizeof(char));                  if (igp == NULL)
                 strcpy(igp->i_field, field);                          errx(1, "Out of memory");
                   igp->i_field = strdup(field);
                   if (igp->i_field == NULL)
                           errx(1, "Out of memory");
                 igp->i_link = tab->i_head[h];                  igp->i_link = tab->i_head[h];
                 tab->i_head[h] = igp;                  tab->i_head[h] = igp;
                 tab->i_count++;                  tab->i_count++;

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11