aboutsummaryrefslogtreecommitdiffstats
path: root/audio/libcoverart/files/patch-src_xmlParser.cpp
blob: f2a6a9deccd5cbe01cb553cc2924820f782d2716 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
 }