[PATCH] jsproxy: Use debugstr_a on URL

Andrew Eikum aeikum at codeweavers.com
Fri Feb 10 13:35:07 CST 2017


Extremely long URLs can crash when tracing is on.

Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
---
 dlls/jsproxy/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/jsproxy/main.c b/dlls/jsproxy/main.c
index 11a671a41b..1ad57aa46b 100644
--- a/dlls/jsproxy/main.c
+++ b/dlls/jsproxy/main.c
@@ -635,7 +635,7 @@ BOOL WINAPI InternetGetProxyInfo( LPCSTR url, DWORD len_url, LPCSTR hostname, DW
     WCHAR *urlW = NULL, *hostnameW = NULL;
     BOOL ret = FALSE;
 
-    TRACE( "%s, %u, %s, %u, %p, %p\n", url, len_url, hostname, len_hostname, proxy, len_proxy );
+    TRACE( "%s, %u, %s, %u, %p, %p\n", debugstr_a(url), len_url, hostname, len_hostname, proxy, len_proxy );
 
     EnterCriticalSection( &cs_jsproxy );
 
-- 
2.11.1




More information about the wine-patches mailing list