Gunnar Evermann <ge204(a)eng.cam.ac.uk> writes:
 I don't have the Stevens handy. Does anybody know whether the
length
 should include the string terminating 0 or not? 
I do have Stevens at work. I'll check there. 
 ,----
 | #ifdef HAVE_SOCKADDR_SUN_LEN
 |   /* See W. R. Stevens "Advanced Programming in the Unix Environment"
 |      p. 502 */
 |   bindlen = (sizeof (server.sun_len) + sizeof (server.sun_family)
 |              + strlen (server.sun_path) + 1);
 |   server.sun_len = bindlen;
 | #else
 |   bindlen = strlen (server.sun_path) + sizeof (server.sun_family);
 | #endif 
However it seems to me that from simply comparing the two branches of
the #ifdef that adding '+1' in the #else as well would make sense.
Jan