chiark
/
gitweb
/
~mdw
/
tig
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix tree viewing again; introduced by string safety patch
[tig]
/
tig.c
diff --git
a/tig.c
b/tig.c
index 0acb1b0cd33c306d4dd0f4767b97a9bbc5f116a7..29f64da9beef80bd28ac28e7135dacb1bc648efd 100644
(file)
--- 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;
}