diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-05 13:12:12 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-05 13:12:12 +0000 |
commit | c1fd7f502ac50e13a6185e829bdbd03b7d0a931c (patch) | |
tree | fd39f0c38c00a28528f560159ac5f5d2f9542128 /mdoc.c | |
parent | 6936c4e5a0bd4bddcfd7c9d08d801aba0415dbad (diff) | |
download | mandoc-c1fd7f502ac50e13a6185e829bdbd03b7d0a931c.tar.gz |
Cleaned up ctype functions (netbsd).
Fixed .Ex/.Rv -std usage.
Made Ar provide default value.
Diffstat (limited to 'mdoc.c')
-rw-r--r-- | mdoc.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -220,7 +220,8 @@ mdoc_parseln(struct mdoc *mdoc, int line, char *buf) return(1); i = 1; - while (buf[i] && ! isspace((int)buf[i]) && i < (int)sizeof(tmp)) + while (buf[i] && ! isspace((u_char)buf[i]) && + i < (int)sizeof(tmp)) i++; if (i == (int)sizeof(tmp)) { @@ -241,7 +242,7 @@ mdoc_parseln(struct mdoc *mdoc, int line, char *buf) return(mdoc_perr(mdoc, line, 1, "unknown macro")); } - while (buf[i] && isspace((int)buf[i])) + while (buf[i] && isspace((u_char)buf[i])) i++; if ( ! mdoc_macro(mdoc, c, line, 1, &i, buf)) { |