Commit ec97e3fd authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

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

parent 6485a67a
...@@ -902,7 +902,8 @@ static HRESULT read_post_data_stream(nsIInputStream *stream, BOOL contains_heade ...@@ -902,7 +902,8 @@ static HRESULT read_post_data_stream(nsIInputStream *stream, BOOL contains_heade
post_data = new_data; 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 = post_data;
request_data->post_data_len = data_len; request_data->post_data_len = data_len;
TRACE("post_data = %s\n", debugstr_an(request_data->post_data, request_data->post_data_len)); TRACE("post_data = %s\n", debugstr_an(request_data->post_data, request_data->post_data_len));
......
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