Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!umigw!jim From: jim@umigw.MIAMI.EDU (jim brown) Newsgroups: comp.mail.elm Subject: Alias field check too short, use NLEN-1 Message-ID: <241@umigw.MIAMI.EDU> Date: 25 Apr 89 17:43:40 GMT Reply-To: jim@umigw.miami.edu (jim brown) Distribution: na Organization: University of Miami Lines: 52 Alias entries are allowed to be NLEN-1 long, not just 20. Included are changes for src/aliaslib.c and utils/newalias.c. *** src/aliaslib.c.1 Fri Apr 21 02:46:44 1989 --- src/aliaslib.c Tue Apr 25 16:56:51 1989 *************** *** 153,159 **** /** find word and return loc, or -1 **/ register int loc; ! if (strlen(word) > 20) { dprint(3, (debugfile, "Overly long alias name entered: %s\n", word)); error1("Bad alias name: %s. Too long.\n", word); return(-1); --- 153,159 ---- /** find word and return loc, or -1 **/ register int loc; ! if (strlen(word) > NLEN-1) { dprint(3, (debugfile, "Overly long alias name entered: %s\n", word)); error1("Bad alias name: %s. Too long.\n", word); return(-1); *** utils/newalias.c.1 Fri Apr 21 02:47:20 1989 --- utils/newalias.c Tue Apr 25 16:56:08 1989 *************** *** 373,381 **** /** add word and offset to current hash table. **/ register int loc; ! if (strlen(word) > 20) { printf("Bad alias name: %s. Too long.\n", word); exit(1); } loc = hash_it(word, size); --- 381,389 ---- /** add word and offset to current hash table. **/ register int loc; ! if (strlen(word) > NLEN-1) { printf("Bad alias name: %s. Too long.\n", word); exit(1); } loc = hash_it(word, size); === end of patches === -- Jim Brown, University of Miami, RSMAS/MPO [send mail to jim@umigw.miami.edu]