Mercurial > mplayer.hg
changeset 23333:c51b95236413
Fix OpenBSD compilation: strndup is a GNU extension.
author | reimar |
---|---|
date | Sun, 20 May 2007 11:36:50 +0000 |
parents | 0471ad67050e |
children | f665e123e6f9 |
files | stream/tvi_bsdbt848.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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); } }