From: Jonas Fonseca Date: Mon, 11 Sep 2006 04:23:49 +0000 (+0200) Subject: Fix tree viewing again; introduced by string safety patch X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4038038fbb20f1fc72face6de03be5aee34c7ea7;p=tig.git Fix tree viewing again; introduced by string safety patch --- 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; }