summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Funk <juergen.funk_ml@cib.de>2015-04-28 14:12:39 +0200
committerKatarina Behrens <Katarina.Behrens@cib.de>2015-04-28 16:17:25 +0000
commite88dde1f6e9198d4ed4b62f80c27bdc8b7ab88dd (patch)
treea45576538c43dffd3a32384a46a6ebdfd758266f
parent5e6b5b3c039271d854a7684eebdf54712bac9e51 (diff)
Fix tdf#90911 wrong parameter size on getsockname
This was crashing on selected versions for Windows. Change-Id: I7e9dd39db06f6ed93d2ae0d49275387e53983a89 Reviewed-on: https://gerrit.libreoffice.org/15559 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> (cherry picked from commit 84c73c983577e33dda266bbfcdd89b9e1202906b) Reviewed-on: https://gerrit.libreoffice.org/15560 Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de> Tested-by: Katarina Behrens <Katarina.Behrens@cib.de>
-rw-r--r--sd/source/ui/remotecontrol/BluetoothServer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx
index d5bf9663a97c..b5f30e5da3f0 100644
--- a/sd/source/ui/remotecontrol/BluetoothServer.cxx
+++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx
@@ -1345,7 +1345,7 @@ void SAL_CALL BluetoothServer::run()
}
SOCKADDR aName;
- int aNameSize = sizeof(aAddr);
+ int aNameSize = sizeof(aName);
getsockname( aSocket, &aName, &aNameSize ); // Retrieve the local address and port
CSADDR_INFO aAddrInfo;