summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b77b2cb)
raw | patch | inline | side by side (parent: b77b2cb)
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 | history |
index 0acb1b0cd33c306d4dd0f4767b97a9bbc5f116a7..29f64da9beef80bd28ac28e7135dacb1bc648efd 100644 (file)
--- a/tig.c
+++ b/tig.c
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;
}