=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/oldrdist/Attic/lookup.c,v retrieving revision 1.4 retrieving revision 1.5 diff -c -r1.4 -r1.5 *** src/usr.bin/oldrdist/Attic/lookup.c 1996/07/19 21:57:32 1.4 --- src/usr.bin/oldrdist/Attic/lookup.c 1996/08/22 20:33:21 1.5 *************** *** 1,4 **** ! /* $OpenBSD: lookup.c,v 1.4 1996/07/19 21:57:32 millert Exp $ */ /* * Copyright (c) 1983, 1993 --- 1,4 ---- ! /* $OpenBSD: lookup.c,v 1.5 1996/08/22 20:33:21 millert Exp $ */ /* * Copyright (c) 1983, 1993 *************** *** 35,41 **** #ifndef lint /* from: static char sccsid[] = "@(#)lookup.c 8.1 (Berkeley) 6/9/93"; */ ! static char *rcsid = "$OpenBSD: lookup.c,v 1.4 1996/07/19 21:57:32 millert Exp $"; #endif /* not lint */ #include "defs.h" --- 35,41 ---- #ifndef lint /* from: static char sccsid[] = "@(#)lookup.c 8.1 (Berkeley) 6/9/93"; */ ! static char *rcsid = "$OpenBSD: lookup.c,v 1.5 1996/08/22 20:33:21 millert Exp $"; #endif /* not lint */ #include "defs.h" *************** *** 129,135 **** register unsigned n; register char *cp; register struct syment *s; ! char buf[1024]; if (debug) printf("lookup(%s, %d, %x)\n", name, action, value); --- 129,135 ---- register unsigned n; register char *cp; register struct syment *s; ! char buf[BUFSIZ]; if (debug) printf("lookup(%s, %d, %x)\n", name, action, value); *************** *** 144,151 **** continue; if (action != LOOKUP) { if (action != INSERT || s->s_type != CONST) { ! (void)snprintf(buf, sizeof buf, ! "%s redefined", name); yyerror(buf); } } --- 144,151 ---- continue; if (action != LOOKUP) { if (action != INSERT || s->s_type != CONST) { ! (void)snprintf(buf, sizeof(buf), ! "%s redefined", name); yyerror(buf); } } *************** *** 153,159 **** } if (action == LOOKUP) { ! (void)snprintf(buf, sizeof buf, "%s undefined", name); yyerror(buf); return(NULL); } --- 153,159 ---- } if (action == LOOKUP) { ! (void)snprintf(buf, sizeof(buf), "%s undefined", name); yyerror(buf); return(NULL); }