jim@umigw.MIAMI.EDU (jim brown) (04/26/89)
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]