[MPlayer-cvslog] r23351 - trunk/stream/tvi_bsdbt848.c
    reimar 
    subversion at mplayerhq.hu
       
    Sun May 20 13:36:50 CEST 2007
    
    
  
Author: reimar
Date: Sun May 20 13:36:50 2007
New Revision: 23351
Log:
Fix OpenBSD compilation: strndup is a GNU extension.
Modified:
   trunk/stream/tvi_bsdbt848.c
Modified: trunk/stream/tvi_bsdbt848.c
==============================================================================
--- trunk/stream/tvi_bsdbt848.c	(original)
+++ trunk/stream/tvi_bsdbt848.c	Sun May 20 13:36:50 2007
@@ -190,13 +190,13 @@ static tvi_handle_t *tvi_init_bsdbt848(c
         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);
         }
     }
 
    
    
More information about the MPlayer-cvslog
mailing list