Module Name:    othersrc
Committed By:   agc
Date:           Sat Jun  1 22:21:12 UTC 2013

Modified Files:
        othersrc/external/bsd/bufgap/dist: bufgap.c

Log Message:
fix an obvious bug when claculating length of previous character


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 othersrc/external/bsd/bufgap/dist/bufgap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: othersrc/external/bsd/bufgap/dist/bufgap.c
diff -u othersrc/external/bsd/bufgap/dist/bufgap.c:1.2 othersrc/external/bsd/bufgap/dist/bufgap.c:1.3
--- othersrc/external/bsd/bufgap/dist/bufgap.c:1.2	Thu Oct 13 15:59:10 2011
+++ othersrc/external/bsd/bufgap/dist/bufgap.c	Sat Jun  1 22:21:12 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: bufgap.c,v 1.2 2011/10/13 15:59:10 agc Exp $ */
+/* $NetBSD: bufgap.c,v 1.3 2013/06/01 22:21:12 agc Exp $ */
 
 /*-
  * Copyright (c) 1996-2011 Alistair Crooks <a...@netbsd.org>
@@ -94,7 +94,7 @@ chartorune(Rune *rp, char *s)
 static int
 priorrune(Rune *rp, char *s)
 {
-	*rp = s[0];
+	*rp = s[-1];
 	return 1;
 }
 #else

Reply via email to