Internal plugin initalizers must now be prefixed with wofi_. This prevents using map, wl_list, wofi, and other mode strings to segfault wofi

This commit is contained in:
Scoopta committed 2019-11-04 13:25:44 -08:00
1 parent 97dd534c97
commit 5bb351d450
4 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -394,7 +394,7 @@ static gboolean key_press(GtkWidget* widget, GdkEvent* event, gpointer data) {
}
static void* get_plugin_proc(const char* prefix, const char* suffix) {
char* proc_name = utils_concat(2, prefix, suffix);
char* proc_name = utils_concat(3, "wofi_", prefix, suffix);
void* proc = dlsym(RTLD_DEFAULT, proc_name);
free(proc_name);
return proc;