diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc index fdc18febf46..0d1c61ebdb7 100644 --- a/proxy/http/HttpSM.cc +++ b/proxy/http/HttpSM.cc @@ -6890,7 +6890,8 @@ HttpSM::update_stats() int offset = 0; int skip = 0; - t_state.hdr_info.client_request.url_print(url_string, sizeof url_string, &offset, &skip); + t_state.hdr_info.client_request.url_print(url_string, sizeof(url_string), &offset, &skip); + url_string[sizeof(url_string) - 1] = 0; // NULL terminate the string // unique id char unique_id_string[128] = "";