[PATCH] Fix off-by-one error.

From: A Large Angry SCM <gitzilla@gmail.com>
Date: 2005-11-26 14:37:30
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
-
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 14:38:10 2005

This archive was generated by hypermail 2.1.8 : 2005-11-26 14:38:16 EST