1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-25 21:07:40 +00:00
freebsd-ports/net-im/ayttm/files/patch-ah
Jim Mock 1ed7c2b7a6 Fix a problem where the socket wasn't being removed and everybuddy
wouldn't run more than once.

PR:		24724
Submitted by:	Vivek Khera <khera@kciLink.com>
2001-01-30 16:06:14 +00:00

12 lines
397 B
Plaintext

--- src/#main.c~ Mon Jan 29 14:49:29 2001
+++ src/main.c Mon Jan 29 14:49:29 2001
@@ -279,7 +279,7 @@
strcat(local.sun_path, "eb_socket");
unlink(local.sun_path);
local.sun_family = AF_UNIX;
- len = strlen(local.sun_path) + sizeof(local.sun_family);
+ len = strlen(local.sun_path) + 1 + sizeof(local.sun_family);
if(bind(sock, (struct sockaddr *)&local, len) == -1)
{
perror("bind");