Revision 0b3bf4b1 sysdep/unix/io.c

View differences:

sysdep/unix/io.c
774 774
  unlink(name);
775 775
  sa.sun_family = AF_UNIX;
776 776
  strcpy(sa.sun_path, name);
777
  if (bind(fd, (struct sockaddr *) &sa, sizeof(sa)) < 0)
777
  if (bind(fd, (struct sockaddr *) &sa, SUN_LEN(&sa)) < 0)
778 778
    ERR("bind");
779 779
  if (listen(fd, 8))
780 780
    ERR("listen");

Also available in: Unified diff