]> git.sesse.net Git - vlc/commitdiff
http.c: fixed out of buffer write with ICY meta
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Sat, 2 Apr 2005 13:10:53 +0000 (13:10 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Sat, 2 Apr 2005 13:10:53 +0000 (13:10 +0000)
modules/access/http.c

index 9a13d21046824aef0f6980e4a75365d3a26d8f28..df9dccb91d2a8415808d2613e0ecc702bfc38fee 100644 (file)
@@ -639,7 +639,7 @@ static int ReadICYMeta( access_t *p_access )
     if( i_read != buffer[0] * 16 )
         return VLC_EGENERIC;
 
-    psz_meta[buffer[0]*16 + 1] = '\0'; /* Just in case */
+    psz_meta[buffer[0]*16] = '\0'; /* Just in case */
 
     msg_Dbg( p_access, "icy-meta=%s", psz_meta );