Hi, Adding space and converting NULL to char conversion with '\0' seems to be enough for libmusicbrainz.
timo Index: patches/patch-src_webservice_cpp =================================================================== RCS file: patches/patch-src_webservice_cpp diff -N patches/patch-src_webservice_cpp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-src_webservice_cpp 10 Apr 2018 05:24:34 -0000 @@ -0,0 +1,23 @@ +$OpenBSD$ + +Index: src/webservice.cpp +--- src/webservice.cpp.orig ++++ src/webservice.cpp +@@ -184,7 +184,7 @@ WebService::get(const std::string &entity, + if (!sess) + throw WebServiceError("ne_session_create() failed."); + ne_set_server_auth(sess, httpAuth, this); +- ne_set_useragent(sess, PACKAGE"/"VERSION); ++ ne_set_useragent(sess, PACKAGE "/" VERSION); + + // Use proxy server + if (!d->proxyHost.empty()) { +@@ -269,7 +269,7 @@ WebService::post(const std::string &entity, + if (!sess) + throw WebServiceError("ne_session_create() failed."); + ne_set_server_auth(sess, httpAuth, this); +- ne_set_useragent(sess, PACKAGE"/"VERSION); ++ ne_set_useragent(sess, PACKAGE "/" VERSION); + + // Use proxy server + if (!d->proxyHost.empty()) { Index: patches/patch-src_xmlParser_xmlParser_cpp =================================================================== RCS file: patches/patch-src_xmlParser_xmlParser_cpp diff -N patches/patch-src_xmlParser_xmlParser_cpp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-src_xmlParser_xmlParser_cpp 10 Apr 2018 05:24:34 -0000 @@ -0,0 +1,14 @@ +$OpenBSD$ + +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; + }