ports/77612: Unbreak audio/xsidplay on FreeBSD >= 5.x

Johan van Selst johans at stack.nl
Wed Feb 16 20:20:12 UTC 2005


>Number:         77612
>Category:       ports
>Synopsis:       Unbreak audio/xsidplay on FreeBSD >= 5.x
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 16 20:20:11 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Johan van Selst
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD mud.stack.nl 5.3-STABLE FreeBSD 5.3-STABLE #0: Mon Jan 31 22:31:14 CET 2005 root at mud.stack.nl:/usr/obj/usr/src/sys/mud i386


	
>Description:
	
	Compiler complains about streamoff arithmetic.
	Q&D fix: cast streamoff to off_t

>How-To-Repeat:
	
>Fix:

	

	Include this patch as files/patch-src_songlendb_File.cpp

--- src/songlendb/File.cpp.orig	Wed Feb 16 21:06:46 2005
+++ src/songlendb/File.cpp	Wed Feb 16 21:12:12 2005
@@ -126,9 +126,9 @@ bool SongLengthFile::init(const char* fi
     streampos fileLen = myIn.tellg();
 #endif
 #ifdef XSID_HAVE_NOTHROW
-    pDB = new(std::nothrow) char[fileLen+1L];
+    pDB = new(std::nothrow) char[(off_t)fileLen+1L];
 #else
-    pDB = new char[fileLen+1L];
+    pDB = new char[(off_t)fileLen+1L];
 #endif
     if ( pDB == 0 )
     {
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list