From 4038038fbb20f1fc72face6de03be5aee34c7ea7 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Mon, 11 Sep 2006 06:23:49 +0200 Subject: [PATCH] Fix tree viewing again; introduced by string safety patch --- tig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tig.c b/tig.c index 0acb1b0..29f64da 100644 --- a/tig.c +++ b/tig.c @@ -2563,7 +2563,7 @@ tree_enter(struct view *view, struct line *line) size_t origlen = pathlen; char *basename = data + SIZEOF_TREE_ATTR; - if (string_format_from(opt_path, &pathlen, "%s/", basename)) { + if (!string_format_from(opt_path, &pathlen, "%s/", basename)) { opt_path[origlen] = 0; return TRUE; } -- 2.30.2