vlc | branch: master | Francois Cartegnie <[email protected]> | Wed Oct 29 
11:47:41 2014 +0100| [a9d48170382121732bcf0b19ec6edb433b34e8db] | committer: 
Francois Cartegnie

stream_filter: smooth: missing terminating zero

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

 modules/stream_filter/smooth/downloader.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/stream_filter/smooth/downloader.c 
b/modules/stream_filter/smooth/downloader.c
index 25c8ebf..56bb64b 100644
--- a/modules/stream_filter/smooth/downloader.c
+++ b/modules/stream_filter/smooth/downloader.c
@@ -52,6 +52,7 @@ static bool Replace( char **ppsz_string, off_t off, const 
char *psz_old,
              *ppsz_string + off + i_oldlen,
              i_stringlen - off - i_newlen );
     strncpy( *ppsz_string + off, psz_new, i_newlen );
+    (*ppsz_string)[i_stringlen] = 0;
 
     return true;
 }

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to