]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* ldlex.l: Use fread instead of read.
authorAndreas Jaeger <aj@suse.de>
Mon, 21 Jan 2002 19:53:44 +0000 (19:53 +0000)
committerAndreas Jaeger <aj@suse.de>
Mon, 21 Jan 2002 19:53:44 +0000 (19:53 +0000)
ld/ChangeLog
ld/ldlex.l

index 86161d6941d1d556d86629ea1e41a276fdb263d1..ed4a3c74936a311d1ccb884fb7779e58560db6cb 100644 (file)
@@ -1,3 +1,7 @@
+2002-01-21  Andreas Jaeger  <aj@suse.de>
+
+       * ldlex.l: Use fread instead of read.
+
 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
 
        * configure.tgt (ia64-*-netbsd*): New target.
index 95a31f5a64a120adac9baf512dbbc52677a7bd5f..9f127f96d506ba16be67ce6197bee901454194a0 100644 (file)
@@ -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");
        }