Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/diffbreaker/files/diffbreaker Fix off-by-one for...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0e704cfed414
branches: trunk
changeset: 434533:0e704cfed414
user: nat <nat%pkgsrc.org@localhost>
date: Thu Jun 18 13:40:17 2020 +0000
description:
Fix off-by-one for last line of input diff.
diffstat:
devel/diffbreaker/files/diffbreaker/diffbreaker.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r d6b39f74f263 -r 0e704cfed414 devel/diffbreaker/files/diffbreaker/diffbreaker.c
--- a/devel/diffbreaker/files/diffbreaker/diffbreaker.c Thu Jun 18 13:39:58 2020 +0000
+++ b/devel/diffbreaker/files/diffbreaker/diffbreaker.c Thu Jun 18 13:40:17 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: diffbreaker.c,v 1.7 2020/06/18 13:38:49 nat Exp $ */
+/* $NetBSD: diffbreaker.c,v 1.8 2020/06/18 13:40:17 nat Exp $ */
/*-
* Copyright (c) 2018, 2019 Nathanial Sloss <nathanialsloss%yahoo.com.au@localhost>
@@ -413,7 +413,7 @@
}
}
cpl++;
- l = n--;
+ l = n;
size_t totalalloc = (size_t)(l * cpl);
if (totalalloc <= 0 || l <= 0)
Home |
Main Index |
Thread Index |
Old Index