projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e12a869
)
dvb: Fix previous commit
author
Edward Hervey
<edward@centricular.com>
Thu, 23 Nov 2017 07:14:06 +0000
(08:14 +0100)
committer
Edward Hervey
<bilboed@bilboed.com>
Thu, 23 Nov 2017 07:14:06 +0000
(08:14 +0100)
strlen on strings (and not sizeof) *sigh*
sys/dvb/camswclient.c
patch
|
blob
|
history
diff --git
a/sys/dvb/camswclient.c
b/sys/dvb/camswclient.c
index
f2b51a8
..
2020569
100644
(file)
--- 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, s
izeof
(sock_path));
+ strncpy (addr.sun_path, sock_path, s
trlen
(sock_path));
GST_INFO ("connecting to softcam socket: %s", sock_path);
if ((client->sock = socket (PF_UNIX, SOCK_STREAM, 0)) < 0) {