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

Diff for /src/usr.bin/cvs/Attic/hist.c between version 1.13 and 1.14

version 1.13, 2006/01/02 08:11:56 version 1.14, 2006/04/05 01:38:55
Line 48 
Line 48 
 {  {
         CVSHIST *histp;          CVSHIST *histp;
   
         histp = (CVSHIST *)xmalloc(sizeof(*histp));          histp = xcalloc(1, sizeof(*histp));
         memset(histp, 0, sizeof(*histp));  
   
         histp->chf_buf = (char *)xmalloc((size_t)CVS_HIST_BUFSIZE);          histp->chf_buf = xmalloc((size_t)CVS_HIST_BUFSIZE);
         histp->chf_blen = CVS_HIST_BUFSIZE;          histp->chf_blen = CVS_HIST_BUFSIZE;
         histp->chf_off = 0;          histp->chf_off = 0;
   

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14