15 lines
446 B
Plaintext
15 lines
446 B
Plaintext
$OpenBSD: patch-src_xmlParser_xmlParser_cpp,v 1.1 2018/04/10 06:34:12 jasper Exp $
|
|
|
|
Index: src/xmlParser/xmlParser.cpp
|
|
--- src/xmlParser/xmlParser.cpp.orig
|
|
+++ src/xmlParser/xmlParser.cpp
|
|
@@ -740,7 +740,7 @@ LPTSTR stringDup(LPCTSTR lpszData, int cbData)
|
|
if (lpszNew)
|
|
{
|
|
memcpy(lpszNew, lpszData, (cbData) * sizeof(TCHAR));
|
|
- lpszNew[cbData] = (TCHAR)NULL;
|
|
+ lpszNew[cbData] = '\0';
|
|
}
|
|
return lpszNew;
|
|
}
|