From 06a86a12c757b2b77e994772c3bd7e2583f7f7a9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 5 Mar 2024 18:30:46 +0300 Subject: =?UTF-8?q?fixes=20#4263=20(Telegram:=20=D0=B2=20=D1=87=D0=B0?= =?UTF-8?q?=D1=82=D0=B0=D1=85=20=D0=BD=D0=B5=20=D0=BF=D0=BE=D0=BA=D0=B0?= =?UTF-8?q?=D0=B7=D1=8B=D0=B2=D0=B0=D0=B5=D1=82=D1=81=D1=8F=20=D0=B0=D0=B2?= =?UTF-8?q?=D1=82=D0=BE=D1=80=20=D1=80=D0=B5=D0=BF=D0=BB=D0=B8=D0=BA,=20?= =?UTF-8?q?=D0=BE=D1=81=D1=82=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=BD=D1=8B?= =?UTF-8?q?=D1=85=20=D0=BE=D1=82=20=D0=B8=D0=BC=D0=B5=D0=BD=D0=B8=20=D0=BA?= =?UTF-8?q?=D0=B0=D0=BD=D0=B0=D0=BB=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/Telegram/src/utils.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'protocols/Telegram/src') diff --git a/protocols/Telegram/src/utils.cpp b/protocols/Telegram/src/utils.cpp index 0069b77cbb..a8817da7c7 100644 --- a/protocols/Telegram/src/utils.cpp +++ b/protocols/Telegram/src/utils.cpp @@ -367,6 +367,8 @@ bool CTelegramProto::GetGcUserId(TG_USER *pUser, const TD::message *pMsg, char * _i64toa(pSender->id, dest, 10); if (pUser->m_si && !pSender->wszFirstName.IsEmpty()) g_chatApi.UM_AddUser(pUser->m_si, Utf2T(dest), pSender->getDisplayName(), ID_STATUS_ONLINE); + else + mir_strncpy(dest, T2Utf(pSender->getDisplayName()), 100); return true; } } -- cgit v1.2.3