Commit a9d48170 authored by Francois Cartegnie's avatar Francois Cartegnie

stream_filter: smooth: missing terminating zero

parent 38750d0d
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment