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
1 changed files with 1 additions and 1 deletions

View File

@ -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;