blob: d6b32e4b7b89aecb16d9b7852d901fa1ea9f57d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ab,v 1.8 2005/12/07 18:59:26 joerg Exp $
--- src/songlendb/File.cpp.orig 2005-12-07 16:56:52.000000000 +0000
+++ src/songlendb/File.cpp
@@ -126,7 +126,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
|