mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Fix: #163
This commit is contained in:
parent
14c50132c8
commit
571aca9834
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ char *i3_socket_path = NULL;
|
|||
void i3_support_focus_window ( Window id )
|
||||
{
|
||||
i3_ipc_header_t head;
|
||||
char command[128];
|
||||
char command[UNIX_PATH_MAX + 1];
|
||||
int s, len;
|
||||
ssize_t t;
|
||||
struct sockaddr_un remote;
|
||||
|
@ -66,7 +66,7 @@ void i3_support_focus_window ( Window id )
|
|||
}
|
||||
|
||||
remote.sun_family = AF_UNIX;
|
||||
g_strlcpy ( remote.sun_path, i3_socket_path, strlen ( i3_socket_path ) );
|
||||
g_strlcpy ( remote.sun_path, i3_socket_path, strlen ( i3_socket_path ) + 1 );
|
||||
len = strlen ( remote.sun_path ) + sizeof ( remote.sun_family );
|
||||
|
||||
if ( connect ( s, ( struct sockaddr * ) &remote, len ) == -1 ) {
|
||||
|
|
Loading…
Reference in a new issue