diff --git a/source/dialogs/script.c b/source/dialogs/script.c index 86779830..da2af78c 100644 --- a/source/dialogs/script.c +++ b/source/dialogs/script.c @@ -29,7 +29,6 @@ #define G_LOG_DOMAIN "Dialogs.Script" #include "dialogs/script.h" -#include "config.h" #include "helper.h" #include "rofi.h" #include @@ -204,7 +203,11 @@ static DmenuScriptEntry *execute_executor(Mode *sw, char *arg, } if (retv) { size_t buf_length = strlen(buffer) + 1; +#if GLIB_CHECK_VERSION(2, 68, 0) + retv[(*length)].entry = g_memdup2(buffer, buf_length); +#else retv[(*length)].entry = g_memdup(buffer, buf_length); +#endif retv[(*length)].icon_name = NULL; retv[(*length)].meta = NULL; retv[(*length)].info = NULL; diff --git a/source/keyb.c b/source/keyb.c index 5de0481f..46e208ea 100644 --- a/source/keyb.c +++ b/source/keyb.c @@ -26,11 +26,10 @@ */ #include -#include "rofi.h" -#include "config.h" -#include "nkutils-bindings.h" -#include "xrmoptions.h" #include +#include "nkutils-bindings.h" +#include "rofi.h" +#include "xrmoptions.h" typedef struct { guint id;