From b2ce413a13b2765433cc98bfec246bd647c0e7ea Mon Sep 17 00:00:00 2001 From: "me@ow.nekobit.net" Date: Mon, 18 Apr 2022 22:25:56 +0000 Subject: [PATCH] Fix includes FossilOrigin-Name: b85162a08463c5dd7ff3f92af3a91f25cc9c3ef44ce0cdf5dcd7877425b98546 --- src/base_page.c | 1 + src/base_page.h | 1 + src/string.c | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/base_page.c b/src/base_page.c index ac19237..60e58a4 100644 --- a/src/base_page.c +++ b/src/base_page.c @@ -25,6 +25,7 @@ #include "notifications.h" #include "string_helpers.h" #include "../config.h" +#include "local_config_set.h" // Files #include "../static/index.chtml" diff --git a/src/base_page.h b/src/base_page.h index e8f0bc3..6ce2b6e 100644 --- a/src/base_page.h +++ b/src/base_page.h @@ -22,6 +22,7 @@ #include "l10n.h" #include "local_config.h" #include "session.h" + enum base_category { BASE_CAT_NONE, diff --git a/src/string.c b/src/string.c index afeec59..1d2a3bf 100644 --- a/src/string.c +++ b/src/string.c @@ -16,6 +16,7 @@ * along with this program. If not, see . */ +#include #include #include #include "string.h" @@ -61,7 +62,7 @@ char* strrepl(char* source, char* find, char* repl) do { - n = strstr(find); + n = strstr(needle, find); if (!n) break; result = realloc(result, n - source + repl_len + 1); result[n - source + repl_len] = '\0';