From: Alan Modra Date: Sun, 16 Sep 2001 04:25:33 +0000 (+0000) Subject: * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=74699268157960c08140eb1da8affdd182eaceac;p=binutils-gdb.git * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX defines BufferSize. Increase buffer size by one. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 99f0cc0b5ee..0adf24c9397 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2001-09-15 Alan Modra + + * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX + defines BufferSize. Increase buffer size by one. + 2001-09-14 Ralf Habacker * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak. diff --git a/ld/ldmain.c b/ld/ldmain.c index afc386c41ff..f9c599718b0 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);