Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Oct 1995 08:47:22 +0200
From:      Kai Vorma <vode@snakemail.hut.fi>
To:        current@freebsd.org
Subject:   tail dumps core
Message-ID:  <199510100647.IAA13033@lk-hp-4.hut.fi>

next in thread | raw e-mail | index | archive | help
"cat file | tail" dumps core with the newest phk-malloc. This patch should
help.

*** read.c      Fri May 27 15:32:45 1994
--- read.c.ok   Tue Oct 10 08:30:35 1995
***************
*** 142,148 ****
  
        if ((lines = malloc(off * sizeof(*lines))) == NULL)
                err(1, "%s", strerror(errno));
! 
        sp = NULL;
        blen = cnt = recno = wrap = 0;
  
--- 142,148 ----
  
        if ((lines = malloc(off * sizeof(*lines))) == NULL)
                err(1, "%s", strerror(errno));
!       bzero(lines, off * sizeof(*lines));
        sp = NULL;
        blen = cnt = recno = wrap = 0;
  

..vode




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510100647.IAA13033>