Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site mulga.OZ Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!houxz!vax135!floyd!whuxle!mit-eddie!genrad!decvax!mulga!sml From: sml@mulga.OZ (Steven Law) Newsgroups: net.unix-wizards,net.bugs.4bsd Subject: Re: Talk hanging under 4.2bsd Message-ID: <298@mulga.OZ> Date: Thu, 31-May-84 15:39:11 EDT Article-I.D.: mulga.298 Posted: Thu May 31 15:39:11 1984 Date-Received: Tue, 5-Jun-84 08:46:44 EDT References: <1109@sdcrdcf.UUCP> Organization: Comp Sci, Melbourne Uni, Australia Lines: 25 [] If your 'talk' works when you specify the terminal i.e. 'talk uid ttyxx', then the following bug fix should work for you. In the file get_names.c it sets his_tty to (char *)0 if you don't give a tty number. Later it copies TTY_SIZE chars from there into the request structure. On our system it copies garbage. The following diff gives the simple fix: diff get_names.c get_names.c.bad 101,105c101,102 < if (his_tty) { < strncpy(msg.r_tty, his_tty, TTY_SIZE); < msg.r_tty[TTY_SIZE - 1] = '\0'; < } else < msg.r_tty[0] = '\0'; --- > strncpy(msg.r_tty, his_tty, TTY_SIZE); > msg.r_tty[TTY_SIZE - 1] = '\0'; ----- " 'Twas Mulga Bill from Eaglehawk, that caught the cycling craze." Steven Law. decvax!mulga!sml