cvs commit: ALFS/nALFS/src logging.c

kpfleming at linuxfromscratch.org kpfleming at linuxfromscratch.org
Sat Apr 3 07:15:25 PST 2004


kpfleming    04/04/03 08:15:25

  Modified:    nALFS/src logging.c
  Log:
  fix memory allocation bug (size was incorrectly computed)
  
  Revision  Changes    Path
  1.21      +1 -1      ALFS/nALFS/src/logging.c
  
  Index: logging.c
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/logging.c,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- logging.c	27 Mar 2004 02:31:22 -0000	1.20
  +++ logging.c	3 Apr 2004 15:15:25 -0000	1.21
  @@ -482,7 +482,7 @@
   	/* Doing allocation here, in case collecting is stopped
   	 * (so that this temporary file can be deleted).
   	 */
  -	*flist = xmalloc(sizeof *flist);
  +	*flist = xmalloc(sizeof **flist);
   	(*flist)->name = xstrdup(filename);
   	(*flist)->complete = 0;
   
  
  
  



More information about the alfs-log mailing list