]> git.sesse.net Git - vlc/commitdiff
* modules/mux/ogg.c: fixed potential buffer overflow.
authorGildas Bazin <gbazin@videolan.org>
Mon, 19 Sep 2005 21:32:04 +0000 (21:32 +0000)
committerGildas Bazin <gbazin@videolan.org>
Mon, 19 Sep 2005 21:32:04 +0000 (21:32 +0000)
modules/mux/ogg.c

index dd588eb205926278074b95d791168051165d89d4..cad78987bfc36179b1acc35a308215db45666ebe 100644 (file)
@@ -729,7 +729,7 @@ static block_t *OggCreateHeader( sout_mux_t *p_mux, mtime_t i_dts )
 
             /* comment */
             com[0] = PACKET_TYPE_COMMENT;
-            i_com = snprintf( &com[1], 128, PACKAGE_VERSION" stream output" )
+            i_com = snprintf( &com[1], 127, PACKAGE_VERSION" stream output" )
                      + 1;
             op.packet = com;
             op.bytes  = i_com;