Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jun 2009 21:47:29 +0200 (CEST)
From:      Alex de Kruijff <samesame@akruijff.dds.nl>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Alex de Kruijff <samesame@akruijff.dds.nl>
Subject:   ports/136194: [MAINTAINER] sysutils/samesame small bug fix
Message-ID:  <200906301947.n5UJlTt1032107@Server1.lan>
Resent-Message-ID: <200906301950.n5UJo1FZ003614@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         136194
>Category:       ports
>Synopsis:       [MAINTAINER] sysutils/samesame small bug fix
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 30 19:50:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Alex de Kruijff
>Release:        
>Organization:
>Environment:

        
>Description:
        

>How-To-Repeat:
        
>Fix:

        

samefile and samearchive don't function properly. This is a quick fix   
patch file until I'm ready to release a new version.

--- matchmatrix.diff begins here ---
--- samesame-1.2/matchmatrix.cpp	Fri May 22 12:45:27 2009
+++ samesame-1.3/matchmatrix.cpp	Tue Jun 30 07:41:36 2009
@@ -35,6 +40,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])
 	{
--- matchmatrix.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906301947.n5UJlTt1032107>