From owner-freebsd-current Mon Sep 25 08:15:31 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id IAA13813 for current-outgoing; Mon, 25 Sep 1995 08:15:31 -0700 Received: from ensta.ensta.fr (ensta.ensta.fr [147.250.1.1]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id IAA13747 for ; Mon, 25 Sep 1995 08:14:54 -0700 Received: from itesec.hsc-sec.fr (itesec.hsc-sec.fr [192.70.106.33]) by ensta.ensta.fr (8.7/8.7) with ESMTP id QAA22881 for ; Mon, 25 Sep 1995 16:13:48 +0100 (MET) Received: (from roberto@localhost) by itesec.hsc-sec.fr (8.7/8.7/itesec-1.4) id QAA14309 for freebsd-current@FreeBSD.ORG; Mon, 25 Sep 1995 16:15:01 +0100 (MET) From: Ollivier Robert Message-Id: <199509251515.QAA14309@itesec.hsc-sec.fr> Subject: Memory fault during tn3270 compilation To: freebsd-current@FreeBSD.ORG (FreeBSD Current Users' list) Date: Mon, 25 Sep 1995 16:15:01 +0100 (MET) X-Mailer: ELM [version 2.4 PL24 ME8+] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-current@FreeBSD.ORG Precedence: bulk I got that during my make world (-CURRENT as of yesterday) during the make depend in tn3270. I've tried to replace the gets call by fgets but it does no difference. I've have Poul-Henning's malloc in the libc now. /src/src/usr.bin/tn3270/tn3270/../tools/mkastosc/obj/mkastosc /src/src/usr.bin/tn3270/tn3270/../ctlr/hostctlr.h /src/src/usr.bin/tn3270/tn3270/../ctlr/function.h < /src/src/usr.bin/tn3270/tn3270/../ctlr/unix.kbd > astosc.OUT Memory fault *** Error code 139 Stop. *** Error code 1 Stop. Index: dohits.c =================================================================== RCS file: /spare/FreeBSD-current/src/usr.bin/tn3270/tools/mkhits/dohits.c,v retrieving revision 1.1.1.1 diff -u -2 -r1.1.1.1 dohits.c --- 1.1.1.1 1994/05/27 12:33:03 +++ dohits.c 1995/09/25 15:05:09 @@ -258,5 +258,5 @@ scanwhite(fcnfile, "FCN_"); - while (gets(line) != NULL) { + while (fgets(line, sizeof line, stdin) != NULL) { if (!isdigit(line[0])) { continue; -- Ollivier ROBERT -=-=- Hervé Schauer Consultants -=-=- roberto@hsc.fr.net -=-=-=-=-=- Support The Free UNIX Systems ! FreeBSD Linux NetBSD -=-=-=-=-=-