Date: Mon, 25 Sep 1995 16:15:01 +0100 (MET) From: Ollivier Robert <Ollivier.Robert@hsc.fr.net> To: freebsd-current@FreeBSD.ORG (FreeBSD Current Users' list) Subject: Memory fault during tn3270 compilation Message-ID: <199509251515.QAA14309@itesec.hsc-sec.fr>
next in thread | raw e-mail | index | archive | help
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 -=-=-=-=-=-
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509251515.QAA14309>
