diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-11-30 00:53:10 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-11-30 00:53:10 +0000 |
commit | ce2af47d41cc790df1b18d9e80295a38747de19f (patch) | |
tree | b9e75709ec7e75dada1c77a3ea70f1304091cae9 /src/modules/xml | |
parent | a5574d24bc8c0e94c8880c75f0fd27d08d30b98b (diff) |
code cleanup, x64 fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@11163 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/xml')
-rw-r--r-- | src/modules/xml/xmlParser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/xml/xmlParser.cpp b/src/modules/xml/xmlParser.cpp index 958d54f2fc..9da791bfdf 100644 --- a/src/modules/xml/xmlParser.cpp +++ b/src/modules/xml/xmlParser.cpp @@ -159,7 +159,7 @@ char myIsTextWideChar(const void *b, int len) // inspired by the Wine API: RtlIs const wchar_t *s = (const wchar_t*)b; // buffer too small: - if (len<(int)sizeof(wchar_t)) return FALSE; + if (len<sizeof(wchar_t)) return FALSE; // odd length test if (len&1) return FALSE; @@ -3042,7 +3042,7 @@ unsigned char *XMLParserBase64Tool::decode(XMLCSTR data, int *outlen, XMLError * *outlen = len; if (!len) return NULL; - alloc(len+1); // XXX: check me! + alloc(len+1); if(!decode(data, (unsigned char*)buf, len, xe)) return NULL; return (unsigned char*)buf; |