pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/diffbreaker/files/diffbreaker



Module Name:    pkgsrc
Committed By:   nat
Date:           Thu Jun 18 13:40:18 UTC 2020

Modified Files:
        pkgsrc/devel/diffbreaker/files/diffbreaker: diffbreaker.c

Log Message:
Fix off-by-one for last line of input diff.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 \
    pkgsrc/devel/diffbreaker/files/diffbreaker/diffbreaker.c

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

Modified files:

Index: pkgsrc/devel/diffbreaker/files/diffbreaker/diffbreaker.c
diff -u pkgsrc/devel/diffbreaker/files/diffbreaker/diffbreaker.c:1.7 pkgsrc/devel/diffbreaker/files/diffbreaker/diffbreaker.c:1.8
--- pkgsrc/devel/diffbreaker/files/diffbreaker/diffbreaker.c:1.7        Thu Jun 18 13:38:49 2020
+++ pkgsrc/devel/diffbreaker/files/diffbreaker/diffbreaker.c    Thu Jun 18 13:40:17 2020
@@ -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 @@ read_data_to_buffer(char *myFile)
                }
        }
        cpl++;
-       l = n--;
+       l = n;
 
        size_t totalalloc = (size_t)(l * cpl);
        if (totalalloc <= 0 || l <= 0)



Home | Main Index | Thread Index | Old Index