=================================================================== RCS file: /cvs/mandoc/roff.c,v retrieving revision 1.56 retrieving revision 1.57 diff -u -p -r1.56 -r1.57 --- mandoc/roff.c 2008/12/09 19:57:26 1.56 +++ mandoc/roff.c 2008/12/10 00:52:46 1.57 @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.56 2008/12/09 19:57:26 kristaps Exp $ */ +/* $Id: roff.c,v 1.57 2008/12/10 00:52:46 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -938,11 +938,11 @@ roff_Dd(ROFFCALL_ARGS) /* * This is a bit complex because there are many forms the date - * can be in: it can be simply $Mdocdate: December 9 2008 $, $Mdocdate $, + * can be in: it can be simply $Mdocdate: December 10 2008 $, $Mdocdate $, * or a raw date. Process accordingly. */ - if (0 == strcmp(*argv, "$Mdocdate: December 9 2008 $")) { + if (0 == strcmp(*argv, "$Mdocdate: December 10 2008 $")) { t = time(NULL); if (NULL == localtime_r(&t, &tree->tm)) err(1, "localtime_r"); @@ -1154,7 +1154,7 @@ static int roff_layout(ROFFCALL_ARGS) { int i, c, argcp[ROFF_MAXLINEARG]; - char *argvp[ROFF_MAXLINEARG], *p; + char *argvp[ROFF_MAXLINEARG]; /* * The roff_layout function is for multi-line macros. A layout @@ -1180,9 +1180,8 @@ roff_layout(ROFFCALL_ARGS) return((*tree->cb.roffblkout)(tree->arg, tok)); } + argv++; assert( ! (ROFF_CALLABLE & tokens[tok].flags)); - - p = *argv++; if ( ! roffparseopts(tree, tok, &argv, argcp, argvp)) return(0);