From 968ec2b9acd1032ea51a8c7c602eda5948e41a2b Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 21 Jan 2002 19:53:44 +0000 Subject: [PATCH] * ldlex.l: Use fread instead of read. --- ld/ChangeLog | 4 ++++ ld/ldlex.l | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 86161d6941d..ed4a3c74936 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2002-01-21 Andreas Jaeger + + * ldlex.l: Use fread instead of read. + 2002-01-21 Jason Thorpe * configure.tgt (ia64-*-netbsd*): New target. diff --git a/ld/ldlex.l b/ld/ldlex.l index 95a31f5a64a..9f127f96d50 100644 --- a/ld/ldlex.l +++ b/ld/ldlex.l @@ -1,7 +1,7 @@ %{ -/* Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 - Free Software Foundation, Inc. +/* Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, + 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of GLD, the Gnu Linker. @@ -595,7 +595,7 @@ yy_input (buf, result, max_size) { if (yyin) { - *result = read (fileno (yyin), (char *) buf, max_size); + *result = fread ((char *) buf, 1, max_size, yyin); if (*result < 0) einfo ("%F%P: read in flex scanner failed\n"); } -- 2.30.2