diff --git a/src/utils.c b/src/utils.c index 7a71a52e..a6bddbfd 100644 --- a/src/utils.c +++ b/src/utils.c @@ -2160,7 +2160,7 @@ const gchar *utils_resource_dir(GeanyResourceDirType type) } -void utils_start_new_geany_instance(gchar *doc_path) +void utils_start_new_geany_instance(const gchar *doc_path) { gchar **argv; const gchar *command = is_osx_bundle() ? "open" : "geany"; diff --git a/src/utils.h b/src/utils.h index e9925cea..85d83003 100644 --- a/src/utils.h +++ b/src/utils.h @@ -310,7 +310,7 @@ gchar *utils_get_user_config_dir(void); const gchar *utils_resource_dir(GeanyResourceDirType type); -void utils_start_new_geany_instance(gchar *doc_path); +void utils_start_new_geany_instance(const gchar *doc_path); #endif /* GEANY_PRIVATE */