dvb: fix compilation

This commit is contained in:
Tim-Philipp Müller 2014-04-08 16:09:16 +01:00
parent cdfce09fb7
commit d576a7b5eb

View file

@ -77,7 +77,7 @@ cam_sw_client_open (CamSwClient * client, const char *sock_path)
g_return_val_if_fail (client != NULL, FALSE);
g_return_val_if_fail (client->state == CAM_SW_CLIENT_STATE_CLOSED, FALSE);
g_return_val_if_fail (sock_path != NULL, FALSE);
g_return_val_if_fail (strlen (sock_path) >= sizeof (addr.sun_path));
g_return_val_if_fail (strlen (sock_path) >= sizeof (addr.sun_path), FALSE);
addr.sun_family = AF_UNIX;
strncpy (addr.sun_path, sock_path, sizeof (addr.sun_path));