Reverting to fread, the bug in Solaris was elsewhere

GETADDRINFO
Stephane Bortzmeyer 24 years ago
parent 8ee0504e3a
commit 4512283a2b

@ -33,7 +33,7 @@ readline (fs, ptr, maxlen, ln)
{
while (n < maxlen)
{
r = read (fileno(fs), ptr, maxlen);
r = fread (ptr, 1, maxlen, fs);
if (r == 0)
{
if (timeout_flag)

Loading…
Cancel
Save