2021-06-01 Fred Gleason <fredg@paravelsystems.com>

* Cleaned up compile warnings in 'lib/rdunixsocket.cpp'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-06-01 13:03:27 -04:00
parent a1388ed735
commit 9f517d6176
2 changed files with 4 additions and 2 deletions

View File

@ -21792,3 +21792,5 @@
* Cleaned up compile warnings in 'lib/rdttydevice.cpp'. * Cleaned up compile warnings in 'lib/rdttydevice.cpp'.
2021-06-01 Fred Gleason <fredg@paravelsystems.com> 2021-06-01 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compile warnings in 'lib/rdupload.cpp'. * Cleaned up compile warnings in 'lib/rdupload.cpp'.
2021-06-01 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compile warnings in 'lib/rdunixsocket.cpp'.

View File

@ -2,7 +2,7 @@
// //
// UNIX Socket // UNIX Socket
// //
// (C) Copyright 2018 Fred Gleason <fredg@paravelsystems.com> // (C) Copyright 2018-2021 Fred Gleason <fredg@paravelsystems.com>
// //
// This program is free software; you can redistribute it and/or modify // This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as // it under the terms of the GNU General Public License version 2 as
@ -48,7 +48,7 @@ bool RDUnixSocket::connectToAbstract(const QString &addr,
} }
memset(&sa,0,sizeof(sa)); memset(&sa,0,sizeof(sa));
sa.sun_family=AF_UNIX; sa.sun_family=AF_UNIX;
strncpy(sa.sun_path+1,addr.toUtf8(),UNIX_PATH_MAX-1); strncpy(sa.sun_path+1,addr.toUtf8(),UNIX_PATH_MAX-2);
if(::connect(sock,(struct sockaddr *)(&sa),sizeof(sa))<0) { if(::connect(sock,(struct sockaddr *)(&sa),sizeof(sa))<0) {
return false; return false;
} }