about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorWilliam Wennerström <william@wstrm.dev>2020-12-07 16:46:44 +0100
committerWilliam Wennerström <william@wstrm.dev>2020-12-07 16:46:44 +0100
commit7f0165a91278647e9ddb72890e58a6db6b265a5d (patch)
treefc4723aec9fb7cef12dad33d083f0e4757ffa843 /src
parent332dc87ca5948eb908d0e776eb0d33bacf166fbd (diff)
downloadprofani-tty-7f0165a91278647e9ddb72890e58a6db6b265a5d.tar.gz
Fix segfault for urlopen[1]
Diffstat (limited to 'src')
-rw-r--r--src/ui/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index b24fe976..623556f7 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -2075,7 +2075,7 @@ cons_executable_setting(void)
     //TODO: there needs to be a way to get all the "locales"/schemes so we can
     //display the default openers for all filetypes
     char* urlopen = prefs_get_string_with_option(PREF_URL_OPEN_CMD, "");
-    cons_show("Default '/url open' command (/executable urlopen)                        : %s", urlopen[1]);
+    cons_show("Default '/url open' command (/executable urlopen)                        : %s", urlopen);
     g_free(urlopen);
 
     char* urlsave = prefs_get_string(PREF_URL_SAVE_CMD);