From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff King Subject: [PATCH 03/68] archive-tar: fix minor indentation violation Date: Thu, 24 Sep 2015 17:03:49 -0400 Message-ID: <20150924210349.GC30744@sigill.intra.peff.net> References: <20150924210225.GA23624@sigill.intra.peff.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Thu Sep 24 23:03:56 2015 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZfDgJ-0006QP-Ne for gcvg-git-2@plane.gmane.org; Thu, 24 Sep 2015 23:03:56 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754006AbbIXVDw (ORCPT ); Thu, 24 Sep 2015 17:03:52 -0400 Received: from cloud.peff.net ([50.56.180.127]:35899 "HELO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753958AbbIXVDv (ORCPT ); Thu, 24 Sep 2015 17:03:51 -0400 Received: (qmail 11706 invoked by uid 102); 24 Sep 2015 21:03:51 -0000 Received: from Unknown (HELO peff.net) (10.0.1.1) by cloud.peff.net (qpsmtpd/0.84) with SMTP; Thu, 24 Sep 2015 16:03:51 -0500 Received: (qmail 28830 invoked by uid 107); 24 Sep 2015 21:04:03 -0000 Received: from sigill.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.7) by peff.net (qpsmtpd/0.84) with SMTP; Thu, 24 Sep 2015 17:04:03 -0400 Received: by sigill.intra.peff.net (sSMTP sendmail emulation); Thu, 24 Sep 2015 17:03:49 -0400 Content-Disposition: inline In-Reply-To: <20150924210225.GA23624@sigill.intra.peff.net> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: 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 --- archive-tar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.6.0.rc3.454.g204ad51