From 362c4607671621c4f4265a0089dd1d313e2b7608 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 13 Feb 2013 11:01:26 +0000 Subject: Do not crash when calling choose-tree with a command that changes the mode. --- cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd.c') 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); -- cgit