summaryrefslogtreecommitdiffstats
path: root/roff.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-01 17:27:44 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-01 17:27:44 +0000
commit85ebc4c346a67252f8e7e3a1c4326920984c01e7 (patch)
treeeb357aa2d9480946318b9ecccf29e86489a2862c /roff.c
parent120073f11aa98a6e6187a5bd14df4505cfe2c087 (diff)
downloadmandoc-85ebc4c346a67252f8e7e3a1c4326920984c01e7.tar.gz
mention requests and macros in more messages
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/roff.c b/roff.c
index bf7b9e88..cf6534ed 100644
--- a/roff.c
+++ b/roff.c
@@ -1975,7 +1975,7 @@ roff_so(ROFF_ARGS)
char *name;
name = *bufp + pos;
- mandoc_vmsg(MANDOCERR_SO, r->parse, ln, ppos, ".so %s", name);
+ mandoc_vmsg(MANDOCERR_SO, r->parse, ln, ppos, "so %s", name);
/*
* Handle `so'. Be EXTREMELY careful, as we shouldn't be
@@ -2067,7 +2067,8 @@ roff_getname(struct roff *r, char **cpp, int ln, int pos)
cp++;
if ('\\' == *cp)
continue;
- mandoc_msg(MANDOCERR_NAMESC, r->parse, ln, pos, NULL);
+ mandoc_vmsg(MANDOCERR_NAMESC, r->parse, ln, pos,
+ "%.*s", (int)(cp - name + 1), name);
mandoc_escape((const char **)&cp, NULL, NULL);
break;
}