From 77e1b9f156511adc8d7fb873c5efdfb4003fd292 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sat, 24 Oct 2020 08:47:16 +0400 Subject: [PATCH] Change socket path length condition to >= Looks like 108 is the length including \0, therefore actual limit is 107 --- Telegram/SourceFiles/platform/linux/specific_linux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index d88e91c80f..92fc41d789 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -815,7 +815,7 @@ QString SingleInstanceLocalServerName(const QString &hash) { + '-' + cGUIDStr(); - if (idealSocketPath.size() > 108) { + if (idealSocketPath.size() >= 108) { return AppRuntimeDirectory() + hash; } else { return idealSocketPath;