ports/net-im/imspector/files/patch-icqprotocolplugin.cpp
Michael Scheidell 92a638a8b9 - Update to 20111108
- Add MSN 2011 protocol support

PR:		ports/162511
Submitted by:	"Mikhail T." <m.tsatsenko@gmail.com> (maintainer)
2012-06-24 17:36:25 +00:00

28 lines
805 B
C++

--- icqprotocolplugin.cpp.orig 2010-11-23 17:53:29.000000000 +0300
+++ icqprotocolplugin.cpp 2011-11-08 19:13:36.000000000 +0400
@@ -10,6 +10,7 @@
* in the README file. */
#include "imspector.h"
+#include <sys/endian.h>
#define PLUGIN_NAME "ICQ-AIM IMSpector protocol plugin"
#define PROTOCOL_NAME "ICQ-AIM"
@@ -675,7 +676,7 @@
size_t inbytesleft = mylength - 4;
size_t outbytesleft = BUFFER_SIZE - 1; /* Trailing \0 */
size_t result = iconv(iconv_utf16be_utf8,
- &inbuf, &inbytesleft, &outbuf, &outbytesleft);
+ (const char**) &inbuf, &inbytesleft, &outbuf, &outbytesleft);
if (result == (size_t) -1)
{
@@ -810,7 +811,7 @@
GET_TYPE(uint16_t)
# if __BYTE_ORDER == __BIG_ENDIAN
- *rc = __bswap_16(*rc);
+ *rc = bswap16(*rc);
#endif
return true;