diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-30 19:00:21 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-30 19:00:21 +0000 |
commit | bb0f47d3264c38552e0387bce25211672e48ea72 (patch) | |
tree | ec6da43e62a37fe5549132bd9702fb8867136e17 /src/modules | |
parent | 7555d4a9c79be387c6c151db7aa2ff26016e382b (diff) |
fix for the incorrect string length
git-svn-id: http://svn.miranda-ng.org/main/trunk@4259 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/xml/xmlParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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"<?xml version = \"1.0\" encoding = \"utf-16\"?>\n", sizeof(wchar_t)*40, 1, f))
+ if ( fputws(L"<?xml version = \"1.0\" encoding = \"utf-16\"?>\n", f) == EOF)
{
fclose(f);
return eXMLErrorCannotWriteFile;
|