diff options
Diffstat (limited to 'audio/libcoverart/files/patch-src_xmlParser.cpp')
-rw-r--r-- | audio/libcoverart/files/patch-src_xmlParser.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/audio/libcoverart/files/patch-src_xmlParser.cpp b/audio/libcoverart/files/patch-src_xmlParser.cpp new file mode 100644 index 000000000000..f2a6a9deccd5 --- /dev/null +++ b/audio/libcoverart/files/patch-src_xmlParser.cpp @@ -0,0 +1,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; + } |