chiark
/
gitweb
/
~mdw
/
tig
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b77b2cb
)
Fix tree viewing again; introduced by string safety patch
author
Jonas Fonseca
<fonseca@diku.dk>
Mon, 11 Sep 2006 04:23:49 +0000
(06:23 +0200)
committer
Jonas Fonseca
<fonseca@antimatter.localdomain>
Mon, 11 Sep 2006 04:23:49 +0000
(06:23 +0200)
tig.c
patch
|
blob
|
blame
|
history
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;
}