http debug fix

Aric Stewart aric at codeweavers.com
Tue Oct 18 09:44:30 CDT 2005


use debugstr_a to prevent a buffer overflow when debugging wininet
-------------- next part --------------
Index: dlls/wininet/http.c
===================================================================
RCS file: /home/wine/wine/dlls/wininet/http.c,v
retrieving revision 1.103
diff -u -r1.103 http.c
--- dlls/wininet/http.c	13 Sep 2005 15:00:32 -0000	1.103
+++ dlls/wininet/http.c	18 Oct 2005 14:42:14 -0000
@@ -1665,7 +1665,7 @@
             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);


More information about the wine-patches mailing list