mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 15:05:56 +00:00
Change socket path length condition to >=
Looks like 108 is the length including \0, therefore actual limit is 107
This commit is contained in:
@@ -815,7 +815,7 @@ QString SingleInstanceLocalServerName(const QString &hash) {
|
|||||||
+ '-'
|
+ '-'
|
||||||
+ cGUIDStr();
|
+ cGUIDStr();
|
||||||
|
|
||||||
if (idealSocketPath.size() > 108) {
|
if (idealSocketPath.size() >= 108) {
|
||||||
return AppRuntimeDirectory() + hash;
|
return AppRuntimeDirectory() + hash;
|
||||||
} else {
|
} else {
|
||||||
return idealSocketPath;
|
return idealSocketPath;
|
||||||
|
Reference in New Issue
Block a user