diff options
Diffstat (limited to 'group-base/patches/sys-apps')
-rw-r--r-- | group-base/patches/sys-apps/mandoc-1.14.5/fix-empty-tbl-nullptr.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/group-base/patches/sys-apps/mandoc-1.14.5/fix-empty-tbl-nullptr.patch b/group-base/patches/sys-apps/mandoc-1.14.5/fix-empty-tbl-nullptr.patch new file mode 100644 index 0000000..8e2d249 --- /dev/null +++ b/group-base/patches/sys-apps/mandoc-1.14.5/fix-empty-tbl-nullptr.patch @@ -0,0 +1,22 @@ +--- a/tbl_term.c 2019-11-08 16:58:41.628382060 +0100 ++++ b/tbl_term.c 2019-11-08 16:59:56.127323602 +0100 +@@ -626,7 +626,8 @@ + + lw = cpp == NULL || cpn == NULL || + (cpn->pos != TBL_CELL_DOWN && +- (dpn == NULL || strcmp(dpn->string, "\\^") != 0)) ++ (dpn == NULL || dpn->string == NULL || ++ strcmp(dpn->string, "\\^") != 0)) + ? hw : 0; + tbl_direct_border(tp, BHORIZ * lw, + col->width + col->spacing / 2); +@@ -670,7 +671,8 @@ + + rw = cpp == NULL || cpn == NULL || + (cpn->pos != TBL_CELL_DOWN && +- (dpn == NULL || strcmp(dpn->string, "\\^") != 0)) ++ (dpn == NULL || dpn->string == NULL || ++ strcmp(dpn->string, "\\^") != 0)) + ? hw : 0; + + /* The line crossing at the end of this column. */ |