From b2e879cc88a5331483a77dabebe039c5d55083aa Mon Sep 17 00:00:00 2001 From: Scoopta Date: Fri, 13 Mar 2020 12:27:26 -0700 Subject: [PATCH] mode is not set to _mode but rather mode_ptr->name which is a copy of _mode --- src/wofi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wofi.c b/src/wofi.c index 638b91c..b193cb0 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -1220,7 +1220,7 @@ static void* load_mode(char* _mode, struct mode* mode_ptr, struct map* props) { } if(mode == NULL && no_entry != NULL && no_entry()) { - mode = _mode; + mode = mode_ptr->name; } for(size_t count = 0; count < arg_count; ++count) {