]> git.sesse.net Git - vlc/commitdiff
* fix signedness gcc warning
authorAntoine Cellerier <dionoea@videolan.org>
Sun, 2 Oct 2005 13:15:22 +0000 (13:15 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sun, 2 Oct 2005 13:15:22 +0000 (13:15 +0000)
modules/codec/subsdec.c

index 25b2ac0aa137080919461366bddeb077750062e6..053d6d07e16b600275c01e290767d86e27d28b9e 100644 (file)
@@ -234,7 +234,8 @@ static subpicture_t *ParseText( decoder_t *p_dec, block_t *p_block )
     }
 
     /* Should be resiliant against bad subtitles */
-    psz_subtitle = strndup( p_block->p_buffer, p_block->i_buffer );
+    psz_subtitle = strndup( (const char *)p_block->p_buffer,
+                            p_block->i_buffer );
 
     i_align_h = p_sys->i_align ? 20 : 0;
     i_align_v = 10;