cvs commit: ALFS/nALFS/src backend.c

kpfleming at linuxfromscratch.org kpfleming at linuxfromscratch.org
Sat Apr 3 16:29:52 PST 2004


kpfleming    04/04/03 17:29:52

  Modified:    nALFS/src backend.c
  Log:
  duh, have to null-terminate buffer from read()
  
  Revision  Changes    Path
  1.22      +1 -0      ALFS/nALFS/src/backend.c
  
  Index: backend.c
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/backend.c,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- backend.c	4 Apr 2004 00:28:00 -0000	1.21
  +++ backend.c	4 Apr 2004 00:29:52 -0000	1.22
  @@ -227,6 +227,7 @@
   		return;
   
   	child->used += input;
  +	child->buf[child->used] = '\0';
   	while ((line_end = strchr(&child->buf[0], '\n')) != NULL) {
   		size_t line_length = (line_end - &child->buf[0]) + 1;
   
  
  
  



More information about the alfs-log mailing list