summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/fam_02location.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/IcqOscarJ/src/fam_02location.cpp')
-rw-r--r--protocols/IcqOscarJ/src/fam_02location.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/IcqOscarJ/src/fam_02location.cpp b/protocols/IcqOscarJ/src/fam_02location.cpp
index a4b8601e78..9e1fdd2ad6 100644
--- a/protocols/IcqOscarJ/src/fam_02location.cpp
+++ b/protocols/IcqOscarJ/src/fam_02location.cpp
@@ -89,7 +89,8 @@ static char* AimApplyEncoding(char* pszStr, const char* pszEncoding)
char *szRes = NULL;
SAFE_FREE((void**)&pszStr);
- utf8_decode(szStr, &szRes);
+ if (!utf8_decode(szStr, &szRes))
+ szRes = _strdup(szStr); // Legacy fix
SAFE_FREE((void**)&szStr);
return szRes;