summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-04-09 20:40:15 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-04-09 20:40:15 +0200
commit237ac1a18933c06faf12afdfe37a6232d057807e (patch)
tree750e08607f6781b771f472f62d0da68265a68b41 /src
parentb92a5731e3b1ec7985f899171bc8abc543f404c2 (diff)
changelog, BC case or [ -L %F ] and similar actions using /bin/[
Diffstat (limited to 'src')
-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;