- Fix a small Bug in samefile/samearchive

- Bump PORTREVISION

PR:		ports/136194
Submitted by:	Alex de Kruijff <samesame@akruijff.dds.nl> (maintainer)
This commit is contained in:
Dennis Herrmann 2009-06-30 20:43:11 +00:00
parent 6eabf27d0e
commit 27aca42097
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=236833
2 changed files with 11 additions and 0 deletions

View file

@ -6,6 +6,7 @@
PORTNAME= samesame
PORTVERSION= 1.2
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://samesame.kruijff.org/ \
${MASTER_SITE_LOCAL}

View file

@ -0,0 +1,10 @@
--- matchmatrix.cpp.orig 2009-05-22 12:45:27.000000000 +0200
+++ matchmatrix.cpp 2009-06-30 22:24:35.000000000 +0200
@@ -35,6 +35,7 @@
arr[0] = ((signed char *)tmp) + n * sizeof(char **);
for (size_t i = 1; i < n; ++i)
arr[i] = arr[i - 1] + n - i + 1;
+ memset(arr[0], 0, (n + 1) * n / 2);
#ifdef DEBUG
if (tmp + n * sizeof(char **) + (n + 1) * n / 2 <= arr[n - 1])
{