stream_filter: smooth: missing terminating zero
authorFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 29 Oct 2014 10:47:41 +0000 (11:47 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 29 Oct 2014 10:47:41 +0000 (11:47 +0100)
modules/stream_filter/smooth/downloader.c

index 25c8ebf..56bb64b 100644 (file)
@@ -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;
 }