diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-11-20 04:01:14 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-11-20 04:01:14 +0000 |
commit | 4177135638cc8d30881ba8226a147cdfbbe0da51 (patch) | |
tree | b3979297b3280768ed1265f3b7b074e93287aa89 /net/centericq/files/patch-msnhook.cc | |
parent | Update to 0.0.3. (diff) |
fix previous commit
Submitted by: Alan Cheng-Lung Sung <clsung@dragon2.net>
Notes
Notes:
svn path=/head/; revision=70530
Diffstat (limited to 'net/centericq/files/patch-msnhook.cc')
-rw-r--r-- | net/centericq/files/patch-msnhook.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/centericq/files/patch-msnhook.cc b/net/centericq/files/patch-msnhook.cc index 12ceb55cf702..1e4940bb8926 100644 --- a/net/centericq/files/patch-msnhook.cc +++ b/net/centericq/files/patch-msnhook.cc @@ -39,7 +39,7 @@ em.store(immessage(ic, imevent::incoming, text)); if(c) -@@ -453,3 +456,117 @@ +@@ -453,3 +456,121 @@ clist.get(contactroot)->playsound(imevent::email); } } @@ -98,6 +98,7 @@ + iconv_t handle = iconv_open( "utf-8", guess_current_locale_charset() ); + ret = safe_iconv( handle, (const char **) &inbuf, &length, &outbuf, &outmaxlength ); + ++ *outbuf = '\0'; + iconv_close( handle ); + + return outbuf_save; @@ -115,6 +116,7 @@ + iconv_t handle = iconv_open( "utf-8", guess_current_locale_charset() ); + ret = safe_iconv( handle, (const char **) &inbuf, &length, &outbuf, &outmaxlength ); + ++ *outbuf = '\0'; + iconv_close( handle ); + + std::string return_me = outbuf_save; @@ -133,6 +135,7 @@ + + ret = safe_iconv( handle, (const char **) &inbuf, &length, &outbuf, &outmaxlength ); + ++ *outbuf = '\0'; + iconv_close( handle ); + + return outbuf_save; @@ -151,6 +154,7 @@ + + ret = safe_iconv( handle, (const char **) &inbuf, &length, &outbuf, &outmaxlength ); + ++ *outbuf = '\0'; + iconv_close( handle ); + + std::string return_me = outbuf_save; |