[PATCH] Fix off-by-one error.

From: A Large Angry SCM <gitzilla@gmail.com>
Date: 2005-11-26 18:59:35
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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sat Nov 26 19:00:36 2005

This archive was generated by hypermail 2.1.8 : 2005-11-26 19:00:42 EST