diff options
Diffstat (limited to 'man.c')
-rw-r--r-- | man.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -493,6 +493,12 @@ man_pmacro(struct man *m, int ln, char *buf) break; else if (' ' == buf[i]) break; + + /* Check for invalid characters. */ + + if (isgraph((u_char)buf[i])) + continue; + return(man_perr(m, ln, i, WNPRINT)); } mac[j] = 0; |