summaryrefslogtreecommitdiffstats
path: root/mandoc.c
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@netbsd.org>2010-07-25 19:05:59 +0000
committerJoerg Sonnenberger <joerg@netbsd.org>2010-07-25 19:05:59 +0000
commitab81c92a346ac2efd0e7d19ea69463623518cb41 (patch)
tree479f02f80735001b7670464e0f03e7662aa57449 /mandoc.c
parentd077eeb1d9c69c567d0fd06e867438e856ef14da (diff)
downloadmandoc-ab81c92a346ac2efd0e7d19ea69463623518cb41.tar.gz
Ensure that isalnum is called with unsigned char argument.
Diffstat (limited to 'mandoc.c')
-rw-r--r--mandoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mandoc.c b/mandoc.c
index e0a181c4..cca5cd9d 100644
--- a/mandoc.c
+++ b/mandoc.c
@@ -337,7 +337,7 @@ mandoc_eos(const char *p, size_t sz, int enclosed)
found = 1;
break;
default:
- return(found && (!enclosed || isalnum(*q)));
+ return(found && (!enclosed || isalnum((unsigned char)*q)));
}
}