Use debugstr_a to prevent a buffer overflow when debugging.

oldstable
Aric Stewart 2005-10-19 18:28:35 +00:00 committed by Alexandre Julliard
parent 5f2bf16de4
commit 44cbdf2138
1 changed files with 1 additions and 1 deletions

View File

@ -1665,7 +1665,7 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
memcpy( &ascii_req[len-1], lpOptional, dwOptionalLength );
len = (len + dwOptionalLength - 1);
ascii_req[len] = 0;
TRACE("full request -> %s\n", ascii_req );
TRACE("full request -> %s\n", debugstr_a(ascii_req) );
SendAsyncCallback(&lpwhr->hdr, lpwhr->hdr.dwContext,
INTERNET_STATUS_SENDING_REQUEST, NULL, 0);