Change socket path length condition to >=
Looks like 108 is the length including \0, therefore actual limit is 107
This commit is contained in:
parent
9717a8b5fa
commit
77e1b9f156
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue