=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rdist/lookup.c,v retrieving revision 1.4 retrieving revision 1.5 diff -c -r1.4 -r1.5 *** src/usr.bin/rdist/lookup.c 1996/06/26 05:38:13 1.4 --- src/usr.bin/rdist/lookup.c 1996/07/11 11:57:09 1.5 *************** *** 1,4 **** ! /* $OpenBSD: lookup.c,v 1.4 1996/06/26 05:38:13 deraadt Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. --- 1,4 ---- ! /* $OpenBSD: lookup.c,v 1.5 1996/07/11 11:57:09 mickey Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. *************** *** 35,41 **** #ifndef lint static char RCSid[] = ! "$OpenBSD: lookup.c,v 1.4 1996/06/26 05:38:13 deraadt Exp $"; static char sccsid[] = "@(#)lookup.c 5.1 (Berkeley) 6/6/85"; --- 35,41 ---- #ifndef lint static char RCSid[] = ! "$OpenBSD: lookup.c,v 1.5 1996/07/11 11:57:09 mickey Exp $"; static char sccsid[] = "@(#)lookup.c 5.1 (Berkeley) 6/6/85"; *************** *** 138,143 **** --- 138,145 ---- debugmsg(DM_CALL, "lookup(%s, %d, %x)", name, action, value); + if (strlen(name) > sizeof(ebuf)-12) + yyerror("name is too long"); n = 0; for (cp = name; *cp; ) n += *cp++;