summaryrefslogtreecommitdiff
path: root/archive-tar.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2015-09-24 21:03:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-09-25 17:18:18 (GMT)
commit108332c7a04d309cfed872350ab5c8b8e198f944 (patch)
treeebed75511b6a9406c3a7bf3f7a655b4bb8ef3905 /archive-tar.c
parentd270d7b7a2d631c3d11315f20bb0cf15e438dafa (diff)
downloadgit-108332c7a04d309cfed872350ab5c8b8e198f944.zip
git-108332c7a04d309cfed872350ab5c8b8e198f944.tar.gz
git-108332c7a04d309cfed872350ab5c8b8e198f944.tar.bz2
archive-tar: fix minor indentation violation
This looks like a simple omission from 8539070 (archive-tar: unindent write_tar_entry by one level, 2012-05-03). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'archive-tar.c')
-rw-r--r--archive-tar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archive-tar.c b/archive-tar.c
index 0d1e6bd..b6b30bb 100644
--- a/archive-tar.c
+++ b/archive-tar.c
@@ -233,7 +233,7 @@ static int write_tar_entry(struct archiver_args *args,
size_t rest = pathlen - plen - 1;
if (plen > 0 && rest <= sizeof(header.name)) {
memcpy(header.prefix, path, plen);
- memcpy(header.name, path + plen + 1, rest);
+ memcpy(header.name, path + plen + 1, rest);
} else {
sprintf(header.name, "%s.data",
sha1_to_hex(sha1));