From bb0f47d3264c38552e0387bce25211672e48ea72 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 30 Mar 2013 19:00:21 +0000 Subject: fix for the incorrect string length git-svn-id: http://svn.miranda-ng.org/main/trunk@4259 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/xml/xmlParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/xml/xmlParser.cpp') diff --git a/src/modules/xml/xmlParser.cpp b/src/modules/xml/xmlParser.cpp index b0e9c27970..af3f7d92e1 100644 --- a/src/modules/xml/xmlParser.cpp +++ b/src/modules/xml/xmlParser.cpp @@ -596,7 +596,7 @@ XMLError XMLNode::writeToFile(XMLCSTR filename, const char *encoding, char nForm } if (( !isDeclaration())&&((d->lpszName) || ( !getChildNode().isDeclaration()))) { - if ( !fwrite(L"\n", sizeof(wchar_t)*40, 1, f)) + if ( fputws(L"\n", f) == EOF) { fclose(f); return eXMLErrorCannotWriteFile; -- cgit v1.2.3