From 3d8bc9fbc169c366d1e41c0842a0713ba287ab0d Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 20 May 2007 11:36:50 +0000 Subject: Fix OpenBSD compilation: strndup is a GNU extension. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23351 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/tvi_bsdbt848.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stream/tvi_bsdbt848.c') diff --git a/stream/tvi_bsdbt848.c b/stream/tvi_bsdbt848.c index ba6a8888e4..409af95f7a 100644 --- a/stream/tvi_bsdbt848.c +++ b/stream/tvi_bsdbt848.c @@ -190,13 +190,13 @@ static tvi_handle_t *tvi_init_bsdbt848(char *device,char* adevice) priv->tunerdev = strdup("/dev/tuner0"); }else{ sep = strchr(device,','); + priv->btdev = strdup(device); if(sep){ // tuner device is also passed priv->tunerdev = strdup(sep+1); - priv->btdev = strndup(device,sep-device); + priv->btdev[sep - device] = 0; }else{ priv->tunerdev = strdup("/dev/tuner0"); - priv->btdev = strdup(device); } } -- cgit v1.2.3