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 23:59:35 -0800	[thread overview]
Message-ID: <438815E7.6060507@gmail.com> (raw)


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

---

Fixed the correct line and tested this time.

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

applies-to: 196314fa7461a36f09ad1bab9b76dd190ad1925d
0fdee45c794131cd4cc1a4914cc34ab90511d173
diff --git a/name-rev.c b/name-rev.c
index 817e36b..96a87d3 100644
--- a/name-rev.c
+++ b/name-rev.c
@@ -217,7 +217,7 @@ int main(int argc, char **argv)
 					if (!strcmp(name, "undefined"))
 						continue;
 
-					fwrite(p_start, p - p_start, 1, stdout);
+					fwrite(p_start, p - p_start + 1, 1, stdout);
 					fputc('(', stdout);
 					fputs(name, stdout);
 					fputc(')', stdout);
---
0.99.9.GIT

             reply	other threads:[~2005-11-26  8:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-26  7:59 A Large Angry SCM [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-11-26  3:37 [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=438815E7.6060507@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).