snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 5882ed15de8bf52d79e3a42beee61da03a42586e
parent 86aa0ff4b6b0c7fe054e027be6492f07f9a3d7f2
Author: default <nobody@localhost>
Date:   Sun, 20 Nov 2022 05:33:42 +0100

More RSS tweaks.

Diffstat:
Mhtml.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/html.c b/html.c @@ -1137,13 +1137,13 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char * content = xs_replace_i(content, ">", "&gt;"); if (strlen(title) > 40) - title[i = 40] = '\0'; + title = xs_crop(title, 0, i = 40); if ((v = strchr(title, '<'))) - title[i = (v - title)] = '\0'; + title = xs_crop(title, 0, i = (v - title)); if ((v = strchr(title, '&'))) - title[i = (v - title)] = '\0'; + title = xs_crop(title, 0, i = (v - title)); if (i != -1) title = xs_str_cat(xs_strip(title), "...");