Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC830713); site enea.UUCP Path: utzoo!watmath!clyde!floyd!harpo!seismo!philabs!mcvax!enea!ber From: ber@enea.UUCP (Bj|rn Eriksen) Newsgroups: net.bugs.4bsd Subject: Bug in 4.2 tip Message-ID: <209@enea.UUCP> Date: Wed, 8-Feb-84 20:29:15 EST Article-I.D.: enea.209 Posted: Wed Feb 8 20:29:15 1984 Date-Received: Wed, 8-Feb-84 03:27:23 EST Organization: ENEA DATA, Sweden Lines: 20 When I was adding the "tip" (4.2 BSD) line locking routines to Kermit I came across that old uucplock-bug. In the source for tip there is a file uucplock.c which defines #define NAMESIZE 15 which is used in "ulockf" as static char tempfile[NAMESIZE]; if (pid < 0) { pid = getpid(); sprintf(tempfile, "/usr/spool/uucp/LTMP.%d", pid); } But that file name sure has more than 15 character, which caused my new Kermit to core dump in the next calloc. -- Bjorn Eriksen {philabs,decvax}!mcvax!enea!ber