[vlc-commits] update: do not modify base64 input to add \0	terminators
    Rafaël Carré 
    git at videolan.org
       
    Mon Oct  1 16:18:51 CEST 2012
    
    
  
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon Oct  1 16:16:45 2012 +0200| [6841a105dad5bf416fe7e1b906bf4abdce21fbe9] | committer: Rafaël Carré
update: do not modify base64 input to add \0 terminators
It is not needed anymore since ce6521381b , parsing will
stop at first unrecognized character (like \r or \n)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6841a105dad5bf416fe7e1b906bf4abdce21fbe9
---
 src/misc/update_crypto.c |    3 ---
 1 file changed, 3 deletions(-)
diff --git a/src/misc/update_crypto.c b/src/misc/update_crypto.c
index 550bdc8..b7d5094 100644
--- a/src/misc/update_crypto.c
+++ b/src/misc/update_crypto.c
@@ -392,10 +392,7 @@ static int pgp_unarmor( char *p_ibuf, size_t i_ibuf_len,
         if( p_ipos[i_line_len - 1] == '=' )
         {
             i_end = 1;
-            p_ipos[i_line_len - 1] = '\0';
         }
-        else
-            p_ipos[i_line_len] = '\0';
 
         p_opos += vlc_b64_decode_binary_to_buffer(  p_opos,
                         p_obuf - p_opos + i_obuf_len, p_ipos );
    
    
More information about the vlc-commits
mailing list