diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-04-12 19:19:57 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-04-12 19:19:57 +0000 |
commit | 46efc2522501cd7521cb08c1686de2dbf6544a03 (patch) | |
tree | 838e5d0fddbf9c6b0778c423a3570102f46edc83 /ascii.c | |
parent | 72def18baa480a6e0b55cbe174a49649342cd895 (diff) | |
download | mandoc-46efc2522501cd7521cb08c1686de2dbf6544a03.tar.gz |
Manual .Dt fields CAPITALISED.
Indent set to 5 chars (nroff compat).
Half-indent set to 3 chars (nroff compat).
Default behaviour is loose-y (ignore macro/char/escape).
Added -fstrict.
Added unknown-character ignoring.
Diffstat (limited to 'ascii.c')
-rw-r--r-- | ascii.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -137,7 +137,10 @@ term_a2ascii(void *arg, const char *p, size_t sz, size_t *rsz) assert(p); assert(sz > 0); - assert(p[0] >= ASCII_PRINT_LO && p[0] <= ASCII_PRINT_HI); + + if (p[0] < ASCII_PRINT_LO || p[0] > ASCII_PRINT_HI) + return(NULL); + /* * Lookup the symbol in the symbol hash. See ascii2htab for the |