diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-07-03 06:23:01 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-07-03 06:23:01 +0000 |
| commit | f79713e504c6be6023533d67c25b5846e3588f8d (patch) | |
| tree | 4f55c31d8a34131f579bbcbd05959cb7e9417911 /src | |
| parent | df712d5aa5332fc38df1b2ceca18ccbaca7d8bff (diff) | |
| download | qmmp-f79713e504c6be6023533d67c25b5846e3588f8d.tar.gz qmmp-f79713e504c6be6023533d67c25b5846e3588f8d.tar.bz2 qmmp-f79713e504c6be6023533d67c25b5846e3588f8d.zip | |
fixed problem with UDS under freebsd (patch by SimaMoto,RyoTa)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1792 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/unixdomainsocket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/unixdomainsocket.cpp b/src/ui/unixdomainsocket.cpp index 0801ef6db..6680c457b 100644 --- a/src/ui/unixdomainsocket.cpp +++ b/src/ui/unixdomainsocket.cpp @@ -46,10 +46,10 @@ bool UnixDomainSocket::bind(const QString& path){ bzero(&_local,sizeof(_local)); _local.sun_family = AF_UNIX; strcpy(_local.sun_path,path.toLocal8Bit().data()); - len = strlen(_local.sun_path) + sizeof(_local.sun_family); + len = strlen(_local.sun_path) + sizeof(_local.sun_family) + 1; bool res = !(::bind(_s, (struct sockaddr *)&_local, len)); if(res) - _bound = true; + _bound = true; return res; } |
