ebd334649f
Use a different distfile that has a properly versioned directory. The checksum has changed, but there are no file changes, only the WRKSRC has been renamed from the confusing "libcoverart-{PROJECT_VERSION}" to "libcoverart-1.0.0". Reported by: pkg-fallout [1]
16 lines
529 B
C++
16 lines
529 B
C++
Fix build with clang6.
|
|
src/xmlParser.cpp:676:27: error: cast from pointer to smaller type 'char' loses information
|
|
lpszNew[cbData] = (XMLCHAR)NULL;
|
|
^~~~~~~~~~~~~
|
|
|
|
--- src/xmlParser.cpp.orig 2018-01-20 21:39:55 UTC
|
|
+++ src/xmlParser.cpp
|
|
@@ -673,7 +673,7 @@ XMLSTR stringDup(XMLCSTR lpszData, int cbData)
|
|
if (lpszNew)
|
|
{
|
|
memcpy(lpszNew, lpszData, (cbData) * sizeof(XMLCHAR));
|
|
- lpszNew[cbData] = (XMLCHAR)NULL;
|
|
+ lpszNew[cbData] = 0;
|
|
}
|
|
return lpszNew;
|
|
}
|