diff options
author | Edward Hervey <edward@centricular.com> | 2017-11-23 08:12:03 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2017-11-23 08:12:03 +0100 |
commit | e12a86995ec87a0eaa24b39287ec4aa185cd415d (patch) | |
tree | 0089646b2e82900ee1eb004eaba384aff88528da | |
parent | 5706178d54d3a3dfc50d7c6dee255ff6faa45519 (diff) |
dvb: Fix sock_addr usage (for real)
It was great checking that the string was not too big ... but
it's better if we actually copy the proper amount of bytes :)
CID #206004
-rw-r--r-- | sys/dvb/camswclient.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dvb/camswclient.c b/sys/dvb/camswclient.c index b631cb1a7..f2b51a81a 100644 --- a/sys/dvb/camswclient.c +++ b/sys/dvb/camswclient.c @@ -84,7 +84,7 @@ cam_sw_client_open (CamSwClient * client, const char *sock_path) } addr.sun_family = AF_UNIX; - strncpy (addr.sun_path, sock_path, sizeof (addr.sun_path)); + strncpy (addr.sun_path, sock_path, sizeof (sock_path)); GST_INFO ("connecting to softcam socket: %s", sock_path); if ((client->sock = socket (PF_UNIX, SOCK_STREAM, 0)) < 0) { |