Mercurial > mplayer.hg
diff stream/tvi_bsdbt848.c @ 23333:c51b95236413
Fix OpenBSD compilation: strndup is a GNU extension.
author | reimar |
---|---|
date | Sun, 20 May 2007 11:36:50 +0000 |
parents | da61a88adf63 |
children | d65439444b75 |
line wrap: on
line diff
--- a/stream/tvi_bsdbt848.c Sun May 20 08:15:27 2007 +0000 +++ b/stream/tvi_bsdbt848.c Sun May 20 11:36:50 2007 +0000 @@ -190,13 +190,13 @@ 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); } }