diff --git a/src/main.c b/src/main.c
index e3be28e643e82a088a4eda107ae40a6e733e0d78..41a08e85639c01f28e42f323fc4bd64e96c2e820 100644
--- a/src/main.c
+++ b/src/main.c
@@ -92,7 +92,7 @@
 #endif
 
 static const char _master_location[MAXPATHLEN+CONSTANT_STRLEN(MASTER_COOKIE)] = MASTER_COOKIE;
-static char *master_file_location = _master_location + CONSTANT_STRLEN(MASTER_COOKIE);
+static const char *master_file_location = _master_location + CONSTANT_STRLEN(MASTER_COOKIE);
 
 static void set_master(const char *file)
 {