* ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
defines BufferSize. Increase buffer size by one.
This commit is contained in:
parent
ca58b74bc5
commit
7469926815
|
@ -1,3 +1,8 @@
|
||||||
|
2001-09-15 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
|
||||||
|
defines BufferSize. Increase buffer size by one.
|
||||||
|
|
||||||
2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
|
2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
|
||||||
|
|
||||||
* pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
|
* pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
|
||||||
|
|
|
@ -325,12 +325,12 @@ main (argc, argv)
|
||||||
|
|
||||||
if (saved_script_handle)
|
if (saved_script_handle)
|
||||||
{
|
{
|
||||||
static const int BufferSize = 8192;
|
static const int ld_bufsz = 8193;
|
||||||
size_t n;
|
size_t n;
|
||||||
char *buf = xmalloc (BufferSize);
|
char *buf = xmalloc (ld_bufsz);
|
||||||
|
|
||||||
rewind (saved_script_handle);
|
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;
|
buf [n] = 0;
|
||||||
info_msg (buf);
|
info_msg (buf);
|
||||||
|
|
Loading…
Reference in New Issue