From 893634027f4bb13dd3ef34ef7a5d71e6af17f5c9 Mon Sep 17 00:00:00 2001 From: Anonymous Date: Wed, 30 Nov 2022 17:10:35 -0600 Subject: [PATCH 1/2] this is actually a pipe not a file, it should be closed as a pipe --- activitypub.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/activitypub.c b/activitypub.c index bb091ff..5f26f73 100644 --- a/activitypub.c +++ b/activitypub.c @@ -1017,10 +1017,10 @@ void process_queue(snac *snac) FILE *f; int ok = 0; - if ((f = popen("/usr/sbin/sendmail -t", "w")) != NULL) { + f = popen("/usr/sbin/sendmail -t", "w"); + if (f) { fprintf(f, "%s\n", msg); - - if (fclose(f) != EOF) + if (pclose(f) != EOF) //this is a pipe stream not just a file ok = 1; } From 675b0242d6a636c9cfd3133de909a110d5f2b542 Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Thu, 1 Dec 2022 14:31:16 +0100 Subject: [PATCH 2/2] Close a tag in history list --- html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html.c b/html.c index 2743be9..3f59b09 100644 --- a/html.c +++ b/html.c @@ -812,7 +812,7 @@ d_char *html_timeline(snac *snac, char *list, int local) while (xs_list_iter(&p, &v)) { xs *fn = xs_replace(v, ".html", ""); xs *s1 = xs_fmt( - "
  • %s
  • \n", + "
  • %s
  • \n", snac->actor, v, fn); s = xs_str_cat(s, s1);