aboutsummaryrefslogtreecommitdiff
path: root/cmd.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-02-13 11:01:26 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-02-13 11:01:26 +0000
commit362c4607671621c4f4265a0089dd1d313e2b7608 (patch)
treee2a25bc27f69f07c384156a515febab943af9674 /cmd.c
parentf4c815a1d9bb6c5b16a9f83d6e43c1d183a7f8d1 (diff)
downloadrtmux-362c4607671621c4f4265a0089dd1d313e2b7608.tar.gz
rtmux-362c4607671621c4f4265a0089dd1d313e2b7608.tar.bz2
rtmux-362c4607671621c4f4265a0089dd1d313e2b7608.zip
Do not crash when calling choose-tree with a command that changes the mode.
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd.c b/cmd.c
index fae5b453..52c1a303 100644
--- a/cmd.c
+++ b/cmd.c
@@ -1228,7 +1228,7 @@ cmd_template_replace(const char *template, const char *s, int idx)
int replaced;
size_t len;
- if (strstr(template, "%") == NULL)
+ if (strchr(template, '%') == NULL)
return (xstrdup(template));
buf = xmalloc(1);