summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7fb23e6)
raw | patch | inline | side by side (parent: 7fb23e6)
author | Rene Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Wed, 7 Jun 2006 18:05:43 +0000 (20:05 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 7 Jun 2006 18:49:08 +0000 (11:49 -0700) |
[jc: original fix was done by Pavel and this contains improvements
by Rene.]
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Acked-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
by Rene.]
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Acked-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-tar-tree.c | patch | blob | history |
diff --git a/builtin-tar-tree.c b/builtin-tar-tree.c
index 5f740cf7025bc2a9b46656332c6a54e78ee737e4..7663b9bd8e5f10ee45e34752f631d435687cf1b3 100644 (file)
--- a/builtin-tar-tree.c
+++ b/builtin-tar-tree.c
int i = path->len;
if (i > maxlen)
i = maxlen;
- while (i > 0 && path->buf[i] != '/')
+ do {
i--;
+ } while (i > 0 && path->buf[i] != '/');
return i;
}