#include "exception.hxx"
-// ATTENTION: A lot of mysterious STL bugs occured
+// ATTENTION: A lot of mysterious STL bugs occurred
// with a "real" buffer (buffer larger than 1 byte and up to 100 bytes)
// -> Keep it slow and working!
struct sockaddr_un server_adr;
server_adr.sun_family=AF_UNIX;
strncpy(server_adr.sun_path,unixsocket.c_str(),sizeof(server_adr.sun_path));
- server_adr.sun_path[sizeof(server_adr.sun_path)]=0;
+ server_adr.sun_path[sizeof(server_adr.sun_path)-1]=0;
if(connect(sock,(struct sockaddr *) &server_adr, sizeof(server_adr)))
{