1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/japanese/ircII/files/patch-source::wserv.c
Masafumi Max NAKANE f25e2221ce Add a patch to correct the problem with interaction between ircII and screen.
Suggested by:	mistral@imasy.or.jp (Yoshihiko SARUMARU)
Patch Obtained From:	PR 11388 (from Christopher N. Harrell <cnh@mindspring.com>)
2002-10-14 23:01:03 +00:00

25 lines
594 B
C

--- source/wserv.c.orig Sat Jul 2 11:32:13 1994
+++ source/wserv.c Tue Oct 15 07:52:08 2002
@@ -80,7 +80,7 @@
strcpy(addr->sun_path, argv[1]);
s = socket(AF_UNIX, SOCK_STREAM, 0);
if (0 > connect(s, (struct sockaddr *) addr, sizeof(addr->sun_family) +
- strlen(addr->sun_path)))
+ strlen(addr->sun_path) + 1))
exit(0);
/*
@@ -88,10 +88,10 @@
* can grab the size of the tty, and have it changed.
*/
- tmp = ttyname(0);
+ if ((tmp = ttyname(0)) == NULL)
+ perror("ttyname(0)");
write(s, tmp, strlen(tmp));
write(s, "\n", 1);
- perror(tmp);
term_init();