mshtml: Don't try to null terminate post data if it's not available.

This commit is contained in:
Jacek Caban 2014-11-20 17:59:42 +01:00 committed by Alexandre Julliard
parent 6485a67a90
commit ec97e3fd57
1 changed files with 2 additions and 1 deletions

View File

@ -902,7 +902,8 @@ static HRESULT read_post_data_stream(nsIInputStream *stream, BOOL contains_heade
post_data = new_data;
}
post_data[data_len] = 0;
if(post_data)
post_data[data_len] = 0;
request_data->post_data = post_data;
request_data->post_data_len = data_len;
TRACE("post_data = %s\n", debugstr_an(request_data->post_data, request_data->post_data_len));