aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man.c
diff options
context:
space:
mode:
Diffstat (limited to 'man.c')
-rw-r--r--man.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/man.c b/man.c
index b35d7e07..bf65d919 100644
--- a/man.c
+++ b/man.c
@@ -1,4 +1,4 @@
-/* $Id: man.c,v 1.84 2010/07/22 23:03:15 kristaps Exp $ */
+/* $Id: man.c,v 1.85 2010/08/07 20:57:33 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -21,7 +21,6 @@
#include <sys/types.h>
#include <assert.h>
-#include <ctype.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
@@ -483,21 +482,12 @@ man_pmacro(struct man *m, int ln, char *buf, int offs)
/* Copy the first word into a nil-terminated buffer. */
- for (j = 0; j < 4; j++, i++) {
+ for (j = 0; j < 4; j++, i++)
if ('\0' == (mac[j] = buf[i]))
break;
else if (' ' == buf[i])
break;
- /* Check for invalid characters. */
-
- if (isgraph((u_char)buf[i]))
- continue;
- if ( ! man_pmsg(m, ln, i, MANDOCERR_BADCHAR))
- return(0);
- i--;
- }
-
mac[j] = '\0';
if (j == 4 || j < 1) {