diff options
author | Alan Modra <amodra@gmail.com> | 2001-09-16 04:25:33 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2001-09-16 04:25:33 +0000 |
commit | 74699268157960c08140eb1da8affdd182eaceac (patch) | |
tree | ae63f5072197079ee25a9804a310709552395c6e /ld/ldmain.c | |
parent | ca58b74bc54eaad0c1edbeeba6b51ffb507465ae (diff) | |
download | gdb-74699268157960c08140eb1da8affdd182eaceac.zip gdb-74699268157960c08140eb1da8affdd182eaceac.tar.gz gdb-74699268157960c08140eb1da8affdd182eaceac.tar.bz2 |
* ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
defines BufferSize. Increase buffer size by one.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r-- | ld/ldmain.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c index afc386c..f9c5997 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -325,12 +325,12 @@ main (argc, argv) if (saved_script_handle) { - static const int BufferSize = 8192; + static const int ld_bufsz = 8193; size_t n; - char *buf = xmalloc (BufferSize); + char *buf = xmalloc (ld_bufsz); rewind (saved_script_handle); - while ((n = fread (buf, 1, BufferSize - 1, saved_script_handle)) > 0) + while ((n = fread (buf, 1, ld_bufsz - 1, saved_script_handle)) > 0) { buf [n] = 0; info_msg (buf); |