summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-02-27 20:43:46 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2016-02-27 20:43:46 -0800
commit4af0266a3540f9b8178105e30c501f4f9b6b697f (patch)
tree46cdadf7312cc592be9ee970c6905acffee913f4 /src
parent96bda566ccf21b7762757fb745f1fc0031e89476 (diff)
parent677309d11172f59044672edf112ad3a5f2eacc21 (diff)
Merge pull request #107 from krytarowski/netbsd-support-1
NetBSD build fixes
Diffstat (limited to 'src')
-rw-r--r--src/commonmark.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commonmark.c b/src/commonmark.c
index 60b745c..0667519 100644
--- a/src/commonmark.c
+++ b/src/commonmark.c
@@ -273,8 +273,8 @@ static int S_render_node(cmark_renderer *renderer, cmark_node *node,
// begin or end with a blank line, and code isn't
// first thing in a list item
if (info_len == 0 &&
- (code_len > 2 && !isspace(code[0]) &&
- !(isspace(code[code_len - 1]) && isspace(code[code_len - 2]))) &&
+ (code_len > 2 && !isspace((unsigned char)code[0]) &&
+ !(isspace((unsigned char)code[code_len - 1]) && isspace((unsigned char)code[code_len - 2]))) &&
!(node->prev == NULL && node->parent &&
node->parent->type == CMARK_NODE_ITEM)) {
LIT(" ");