git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: A Large Angry SCM <gitzilla@gmail.com>
To: Junio C Hamano <junkio@cox.net>, git@vger.kernel.org
Subject: [PATCH] Fix off-by-one error.
Date: Fri, 25 Nov 2005 19:37:30 -0800	[thread overview]
Message-ID: <4387D87A.4000103@gmail.com> (raw)


Signed-off-by: A Large Angry SCM <gitzilla@gmail.com>

---

 name-rev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

applies-to: 31b3c7eeb719c61a19922f3e8bf5abd46b49b5bb
d689edabc1af589855047a16d3682dba8fd3f1e5
diff --git a/name-rev.c b/name-rev.c
index 817e36b..2a25958 100644
--- a/name-rev.c
+++ b/name-rev.c
@@ -227,7 +227,7 @@ int main(int argc, char **argv)
 
 			/* flush */
 			if (p_start != p)
-				fwrite(p_start, p - p_start, 1, stdout);
+				fwrite(p_start, p - p_start + 1, 1, stdout);
 		}
 	} else if (all) {
 		int i;
---
0.99.9.GIT

             reply	other threads:[~2005-11-26  3:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-26  3:37 A Large Angry SCM [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-11-26  7:59 [PATCH] Fix off-by-one error A Large Angry SCM

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4387D87A.4000103@gmail.com \
    --to=gitzilla@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).