Displaying 1 result from an estimated 1 matches for "testinet".
2001 Jan 22
0
Patches for failing build & bus error on SPARC/Linux
...(char *)&align, sizeof(struct in_addr));
! if (strlen(inet_ntoa(align)) >= hostlen)
return EAI_MEMORY;
! strcpy(host,inet_ntoa(align));
return 0;
} else {
hp = gethostbyaddr((char *)&sin->sin_addr,
*** /dev/null Tue Jan 1 04:00:00 1980
--- /tmp/testinet.c Mon Jan 22 16:44:17 2001
***************
*** 0 ****
--- 1,47 ----
+ /* Test program to exercise bug arising from assumed alignment of
+ struct sockaddr_in in some SPARC versions of inet_ntoa. Appears under
+ config with host sparc-unknown-linux-gnulibc1.
+
+ To try, compile e.g.
+ g...