2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +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:
Ilya Fedin
2020-10-24 08:47:16 +04:00
committed by John Preston
parent 9717a8b5fa
commit 77e1b9f156

View File

@@ -815,7 +815,7 @@ QString SingleInstanceLocalServerName(const QString &hash) {
+ '-'
+ cGUIDStr();
if (idealSocketPath.size() > 108) {
if (idealSocketPath.size() >= 108) {
return AppRuntimeDirectory() + hash;
} else {
return idealSocketPath;