diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-13 11:01:26 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-13 11:01:26 +0000 |
commit | 362c4607671621c4f4265a0089dd1d313e2b7608 (patch) | |
tree | e2a25bc27f69f07c384156a515febab943af9674 /cmd.c | |
parent | f4c815a1d9bb6c5b16a9f83d6e43c1d183a7f8d1 (diff) | |
download | rtmux-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |