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';