Commit 317001c6 authored by Havoc Pennington's avatar Havoc Pennington Committed by Fiona Glaser

Allocate space for null terminator in param_apply_tune

parent 4fda9276
......@@ -281,7 +281,7 @@ static int x264_param_apply_preset( x264_param_t *param, const char *preset )
static int x264_param_apply_tune( x264_param_t *param, const char *tune )
{
char *tmp = x264_malloc( strlen( tune ) );
char *tmp = x264_malloc( strlen( tune ) + 1 );
if( !tmp )
return -1;
tmp = strcpy( tmp, tune );
......
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