Fix off-by-one error.
PR: ports/150618 Submitted by: Oliver Fromme <olli@secnetix.de> Approved by: Gianmarco Giovannelli <gmarco@gufi.org> (maintainer) Obtained from: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/704cef5251497a4f675f5554fa763c18fb622a5b
This commit is contained in:
parent
d2b4cdfad8
commit
8f1a91c259
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=261857
2 changed files with 12 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= cpdup
|
||||
PORTVERSION= 1.17
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://apollo.backplane.com/FreeSrc/ \
|
||||
http://utenti.gufi.org/~gmarco/files/distfiles/
|
||||
|
|
11
sysutils/cpdup/files/patch-hclink.c
Normal file
11
sysutils/cpdup/files/patch-hclink.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- ./hclink.c.orig 2010-09-25 18:01:27.989863475 -0400
|
||||
+++ ./hclink.c 2010-09-25 18:01:46.138176079 -0400
|
||||
@@ -388,7 +388,7 @@
|
||||
hcc_check_space(hctransaction_t trans, struct HCHead *head, int n, int size)
|
||||
{
|
||||
size = HCC_ALIGN(size) + n * sizeof(struct HCLeaf);
|
||||
- if (size > HC_BUFSIZE - trans->windex) {
|
||||
+ if (size >= HC_BUFSIZE - trans->windex) {
|
||||
struct HCHead *whead = (void *)trans->wbuf;
|
||||
|
||||
whead->cmd |= HCF_CONTINUE;
|
Loading…
Reference in a new issue