Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site polyof.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!cmcl2!philabs!ron1!polyof!steve From: steve@polyof.UUCP (A2 Steve Weiss) Newsgroups: net.sources.bugs Subject: Bug in Chat Version 6.0 Message-ID: <156@polyof.UUCP> Date: Mon, 30-Sep-85 19:00:40 EDT Article-I.D.: polyof.156 Posted: Mon Sep 30 19:00:40 1985 Date-Received: Thu, 3-Oct-85 06:54:43 EDT Distribution: net Organization: Polytechnic Inst. of NY, Farmingdale Lines: 16 *** REPLACE THIS LINE WITH YOUR BUG *** Here is a quick fix for an annoying problem a friend and I found: In module send.c, the declaration of 'shrtname' is inadequate. It tends to scribble onto fname[]. Seems the strcpy() blows away past shrtname[4]. Making shrtname be shrtname[6] seems to fix the problem. Remember, strcpy ALWAYS copies the '\0', so the strcpy(shrtname, &(shrtname[3])); probably copies 3 bytes 99% of the time. I do not think anyone has 4 character ttynames anymore, so if shrtname originally is "tty01" (Keep in mind, it is not necessarily '\0' terminated!), then the strcpy() will muck it up to shrtname[5] (at least, depending on where a '\0' happens to be AFTER shrtname[4]!)