summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/options.c b/src/options.c
index f5f1242..b43db91 100644
--- a/src/options.c
+++ b/src/options.c
@@ -799,7 +799,8 @@ static void check_options(void)
}
opt.action_titles[i] = opt.actions[i];
if (opt.actions[i] && (opt.actions[i][0] == '[')) {
- if ((endptr = strchr(opt.actions[i], ']')) != NULL) {
+ if (((endptr = strchr(opt.actions[i], ']')) != NULL)
+ && (opt.actions[i][1] != ' ')) {
opt.action_titles[i] = opt.actions[i] + 1;
opt.actions[i] = endptr + 1;
*endptr = 0;