summaryrefslogtreecommitdiff
path: root/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'options.cpp')
-rw-r--r--options.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/options.cpp b/options.cpp
index 6acc3e7..a560168 100644
--- a/options.cpp
+++ b/options.cpp
@@ -932,6 +932,8 @@ static BOOL CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LP
s2 = output.find("<", s);
else if(s2 > output.find("<", s))
s2 = output.find("<", s);
+ if(s2 != string::npos)
+ {
tmp2 = new char [output.substr(s,s2-s-1).length()+1];
strcpy(tmp2, output.substr(s,s2-s-1).c_str());
mir_utf8decode(tmp2, 0);
@@ -1057,6 +1059,7 @@ static BOOL CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LP
ListView_SetItemText(hwndList_p, item_num, 3, tmp);
mir_free(tmp);
}
+ }
if(hContact && hwndList_p)
{
ListView_SetColumnWidth(hwndList_p, 0, LVSCW_AUTOSIZE);