diff options
Diffstat (limited to 'plugins/NewStory/src')
-rw-r--r-- | plugins/NewStory/src/history_array.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp index 0a2304ea56..4412584479 100644 --- a/plugins/NewStory/src/history_array.cpp +++ b/plugins/NewStory/src/history_array.cpp @@ -38,7 +38,7 @@ bool HistoryArray::ItemData::load(EventLoadMode mode) wtext = new wchar_t[512]; wtext_del = true; if ((dbe.cbBlob > 8) && *(dbe.pBlob + 8)) { - mir_snwprintf(wtext, 512, L"%s requested authorization", dbe.pBlob + 8); + mir_snwprintf(wtext, 512, L"%s requested authorization", Utf2T((char*)dbe.pBlob + 8).get()); } else { mir_snwprintf(wtext, 512, L"%d requested authorization", *(DWORD *)(dbe.pBlob)); @@ -49,7 +49,7 @@ bool HistoryArray::ItemData::load(EventLoadMode mode) wtext = new wchar_t[512]; wtext_del = true; if ((dbe.cbBlob > 8) && *(dbe.pBlob + 8)) { - mir_snwprintf(wtext, 512, L"%s added you to the contact list", dbe.pBlob + 8); + mir_snwprintf(wtext, 512, L"%s added you to the contact list", Utf2T((char *)dbe.pBlob + 8).get()); } else { mir_snwprintf(wtext, 512, L"%d added you to the contact list", *(DWORD *)(dbe.pBlob)); |