Aric Stewart : wininet: use debugstr_a in NETCON_getNextLine TRACE to avoid overflow on long lines .

Alexandre Julliard julliard at winehq.org
Mon Feb 16 09:35:02 CST 2009


Module: wine
Branch: master
Commit: 32c3cf1db7747af1582235dc7c9ce12b9a3fb900
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=32c3cf1db7747af1582235dc7c9ce12b9a3fb900

Author: Aric Stewart <aric at codeweavers.com>
Date:   Fri Feb 13 14:32:28 2009 -0600

wininet: use debugstr_a in NETCON_getNextLine TRACE to avoid overflow on long lines.

---

 dlls/wininet/netconnection.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wininet/netconnection.c b/dlls/wininet/netconnection.c
index c573407..ccf2928 100644
--- a/dlls/wininet/netconnection.c
+++ b/dlls/wininet/netconnection.c
@@ -659,7 +659,7 @@ BOOL NETCON_getNextLine(WININET_NETCONNECTION *connection, LPSTR lpszBuffer, LPD
 		{
                     lpszBuffer[nRecv++] = '\0';
                     *dwBuffer = nRecv;
-                    TRACE(":%u %s\n", nRecv, lpszBuffer);
+                    TRACE(":%u %s\n", nRecv, debugstr_a(lpszBuffer));
                     return TRUE;
 		}
 		if (lpszBuffer[nRecv] != '\r')




More information about the wine-cvs mailing list