/[mailutils]/mailutils/mh/mh_msgset.c
ViewVC logotype

Diff of /mailutils/mh/mh_msgset.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by polak, Sun Dec 29 12:52:08 2002 UTC revision 1.7 by gray, Sat Jan 18 21:59:29 2003 UTC
# Line 31  _expand (size_t *msgcnt, size_t **msglis Line 31  _expand (size_t *msgcnt, size_t **msglis
31    *msgcnt += inc;    *msgcnt += inc;
32    *msglist = realloc (*msglist, (*msgcnt)*sizeof(**msglist));    *msglist = realloc (*msglist, (*msgcnt)*sizeof(**msglist));
33    if (!*msglist)    if (!*msglist)
34      {      mh_err_memory (1);
       mh_error (_("not enough memory"));  
       abort ();  
     }  
35  }  }
36    
37  /* Fatal error handler */  /* Fatal error handler */
# Line 589  mh_msgset_negate (mailbox_t mbox, mh_msg Line 586  mh_msgset_negate (mailbox_t mbox, mh_msg
586    mailbox_messages_count (mbox, &total);    mailbox_messages_count (mbox, &total);
587    list = calloc (total, sizeof (list[0]));    list = calloc (total, sizeof (list[0]));
588    if (!list)    if (!list)
589      {      mh_err_memory (1);
       mh_error (_("not enough memory"));  
       abort ();  
     }  
590    
591    for (i = 1, msgno = 0; i <= total; i++)    for (i = 1, msgno = 0; i <= total; i++)
592      {      {

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26