]> git.sesse.net Git - vlc/commitdiff
Compile fix for C++ files
authorClément Stenac <zorglub@videolan.org>
Thu, 18 Nov 2004 00:07:28 +0000 (00:07 +0000)
committerClément Stenac <zorglub@videolan.org>
Thu, 18 Nov 2004 00:07:28 +0000 (00:07 +0000)
include/vlc_input.h

index f1bc4358ceb11f5734c1c7c572a1f903ebd4afd2..c0a346c4222d1a724f40aa1e9fe932eea7a741f8 100644 (file)
@@ -95,9 +95,11 @@ static inline void vlc_input_item_CopyOptions( input_item_t *p_parent,
     for( i = 0 ; i< p_parent->i_options; i++ )
     {
         char *psz_option= strdup( p_parent->ppsz_options[i] );
-        INSERT_ELEM( p_child->ppsz_options,
-                     p_child->i_options, p_child->i_options,
-                     psz_option );
+        p_child->i_options++;
+        p_child->ppsz_options = (char **)realloc( p_child->ppsz_options,
+                                                  p_child->i_options *
+                                                  sizeof( char * ) );
+        p_child->ppsz_options[p_child->i_options-1] = psz_option;
     }
 }