pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

cmark: Fix ctype(3) usage



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Feb 28 03:47:46 2016 +0100
Changeset:	15cf019e5967e3e483ffbc3b33e805a2c66cb554

Modified Files:
	cmark/distinfo
Added Files:
	cmark/patches/patch-src_commonmark.c

Log Message:
cmark: Fix ctype(3) usage

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=15cf019e5967e3e483ffbc3b33e805a2c66cb554

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 cmark/distinfo                       |  1 +
 cmark/patches/patch-src_commonmark.c | 15 +++++++++++++++
 2 files changed, 16 insertions(+)

diffs:
diff --git a/cmark/distinfo b/cmark/distinfo
index 5a0fb60..d918df2 100644
--- a/cmark/distinfo
+++ b/cmark/distinfo
@@ -4,3 +4,4 @@ SHA1 (cmark-0.24.1.tar.gz) = bfd17ef9cae14a74a7b2d1c3f171ced3ce9a5c8a
 RMD160 (cmark-0.24.1.tar.gz) = 70dbf24b47c9f9b8b4c8e2d55bcfa92d636056a6
 SHA512 (cmark-0.24.1.tar.gz) = ad6381b0a876472d85fa68e538caeebe3ee2f042c7cd479da1e025164f1ada7ee25ccbdb2d97cc2198de8c903950ba1648f39cef868f9c4f3ccd37db3c9c33b9
 Size (cmark-0.24.1.tar.gz) = 205568 bytes
+SHA1 (patch-src_commonmark.c) = 39aeafbda996f420d5a79912faa3e2813af4d5bd
diff --git a/cmark/patches/patch-src_commonmark.c b/cmark/patches/patch-src_commonmark.c
new file mode 100644
index 0000000..8c85715
--- /dev/null
+++ b/cmark/patches/patch-src_commonmark.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+--- src/commonmark.c.orig	2016-01-18 05:53:29.000000000 +0000
++++ src/commonmark.c
+@@ -270,8 +270,8 @@ static int S_render_node(cmark_renderer 
+     // 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("    ");


Home | Main Index | Thread Index | Old Index