=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/hexdump/parse.c,v retrieving revision 1.3 retrieving revision 1.4 diff -c -r1.3 -r1.4 *** src/usr.bin/hexdump/parse.c 1997/01/17 07:12:39 1.3 --- src/usr.bin/hexdump/parse.c 1998/08/11 22:06:27 1.4 *************** *** 1,4 **** ! /* $OpenBSD: parse.c,v 1.3 1997/01/17 07:12:39 millert Exp $ */ /* * Copyright (c) 1989 The Regents of the University of California. --- 1,4 ---- ! /* $OpenBSD: parse.c,v 1.4 1998/08/11 22:06:27 provos Exp $ */ /* * Copyright (c) 1989 The Regents of the University of California. *************** *** 35,41 **** #ifndef lint /*static char sccsid[] = "from: @(#)parse.c 5.6 (Berkeley) 3/9/91";*/ ! static char rcsid[] = "$OpenBSD: parse.c,v 1.3 1997/01/17 07:12:39 millert Exp $"; #endif /* not lint */ #include --- 35,41 ---- #ifndef lint /*static char sccsid[] = "from: @(#)parse.c 5.6 (Berkeley) 3/9/91";*/ ! static char rcsid[] = "$OpenBSD: parse.c,v 1.4 1998/08/11 22:06:27 provos Exp $"; #endif /* not lint */ #include *************** *** 147,152 **** --- 147,155 ---- escape(tfu->fmt); p++; } + /* no single fu in fmt */ + if (tfs->nextfu == NULL) + badfmt(fmt); } static char *spec = ".#-+ 0123456789";