mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
dvb: Fix previous commit
strlen on strings (and not sizeof) *sigh*
This commit is contained in:
parent
e12a86995e
commit
6c2b9a4fae
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ cam_sw_client_open (CamSwClient * client, const char *sock_path)
|
||||||
}
|
}
|
||||||
|
|
||||||
addr.sun_family = AF_UNIX;
|
addr.sun_family = AF_UNIX;
|
||||||
strncpy (addr.sun_path, sock_path, sizeof (sock_path));
|
strncpy (addr.sun_path, sock_path, strlen (sock_path));
|
||||||
|
|
||||||
GST_INFO ("connecting to softcam socket: %s", sock_path);
|
GST_INFO ("connecting to softcam socket: %s", sock_path);
|
||||||
if ((client->sock = socket (PF_UNIX, SOCK_STREAM, 0)) < 0) {
|
if ((client->sock = socket (PF_UNIX, SOCK_STREAM, 0)) < 0) {
|
||||||
|
|
Loading…
Reference in a new issue