[vlc-commits] subsdec: Fix operators precedence

Hugo Beauzée-Luyssen git at videolan.org
Tue Jul 28 16:01:59 CEST 2015


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Jul 21 10:46:39 2015 +0200| [4c5728df2cd9d92c36302f544ad019fa68808990] | committer: Jean-Baptiste Kempf

subsdec: Fix operators precedence

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4c5728df2cd9d92c36302f544ad019fa68808990
---

 modules/codec/subsdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/subsdec.c b/modules/codec/subsdec.c
index c82a6a1..0465d29 100644
--- a/modules/codec/subsdec.c
+++ b/modules/codec/subsdec.c
@@ -709,7 +709,7 @@ static char* ConsumeAttribute( const char** ppsz_subtitle, char** psz_attribute_
         return NULL;
     }
     strncpy( *psz_attribute_value, psz_subtitle - attr_len, attr_len );
-    *psz_attribute_value[attr_len] = 0;
+    (*psz_attribute_value)[attr_len] = 0;
     *ppsz_subtitle = psz_subtitle;
     return psz_attribute_name;
 }



More information about the vlc-commits mailing list