* ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX

defines BufferSize.  Increase buffer size by one.
This commit is contained in:
Alan Modra
2001-09-16 04:25:33 +00:00
parent ca58b74bc5
commit 7469926815
2 changed files with 8 additions and 3 deletions

View File

@@ -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);