ports/136194: [MAINTAINER] sysutils/samesame small bug fix

Alex de Kruijff samesame at akruijff.dds.nl
Tue Jun 30 19:50:02 UTC 2009


>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:



More information about the freebsd-ports-bugs mailing list