diff options
author | Andreas Jaeger <aj@suse.de> | 2002-01-21 19:53:44 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2002-01-21 19:53:44 +0000 |
commit | 968ec2b9acd1032ea51a8c7c602eda5948e41a2b (patch) | |
tree | e894ebd6cd45ffbdf635f6b2386e819ed5da5c1d /ld/ldlex.l | |
parent | 6f05cf9ffa299309603db9e54ddde4af079609ae (diff) | |
download | gdb-968ec2b9acd1032ea51a8c7c602eda5948e41a2b.zip gdb-968ec2b9acd1032ea51a8c7c602eda5948e41a2b.tar.gz gdb-968ec2b9acd1032ea51a8c7c602eda5948e41a2b.tar.bz2 |
* ldlex.l: Use fread instead of read.
Diffstat (limited to 'ld/ldlex.l')
-rw-r--r-- | ld/ldlex.l | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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"); } |