Files
pkgsrc-ng/audio/xsidplay/patches/patch-ab
2013-09-26 17:14:40 +02:00

22 lines
570 B
Plaintext

$NetBSD: patch-ab,v 1.10 2011/11/27 11:51:17 marino Exp $
--- src/songlendb/File.cpp.orig 2002-03-03 18:00:03.000000000 +0000
+++ src/songlendb/File.cpp
@@ -27,6 +27,7 @@
#ifdef XSID_HAVE_NOTHROW
#include <new>
#endif
+#include <string.h>
using namespace std;
#include "File.h"
@@ -126,7 +127,7 @@ 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[(size_t)fileLen+1L];
#else
pDB = new char[fileLen+1L];
#endif