[wiki] [sites] md-printlinks: fix for printing shortlinks, strip > || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sat, 09 Nov 2019 20:32:40 +0100

commit 8981007187b29de601bba467025dc874537982fd
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Sat Nov 9 20:32:34 2019 +0100

    md-printlinks: fix for printing shortlinks, strip >

diff --git a/md-printlinks.c b/md-printlinks.c
index 301fa678..a218c292 100644
--- a/md-printlinks.c
+++ b/md-printlinks.c
_AT_@ -306,7 +306,7 @@ doshortlink(const char *begin, const char *end, int newblock)
                         if (ismail == 0)
                                 return 0;
                         if (ismail != 1) {
- fwrite(begin + 1, 1, p - begin + 1, stdout);
+ fwrite(begin + 1, 1, p - begin - 1, stdout);
                                 fputs("
", stdout);
                         }
                         return p - begin + 1;
Received on Sat Nov 09 2019 - 20:32:40 CET

This archive was generated by hypermail 2.3.0 : Sat Nov 09 2019 - 20:36:29 CET