From 3ca530cf7c57e54bed712bd967d1e98ce1f42628 Mon Sep 17 00:00:00 2001 From: "raman%netscape.com" Date: Tue, 8 Dec 1998 17:55:03 +0000 Subject: [PATCH] Bug fix for 928. Check for null address in the URL_s structure. git-svn-id: svn://10.0.0.236/trunk@15973 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/network/main/mkgeturl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/network/main/mkgeturl.c b/mozilla/network/main/mkgeturl.c index 284934aaa7e..47e06ae45e1 100644 --- a/mozilla/network/main/mkgeturl.c +++ b/mozilla/network/main/mkgeturl.c @@ -1752,8 +1752,10 @@ NET_ShutdownNetLib(void) } /* XP_OS2_FIX IBM-MAS: limit length of output to keep from blowing trace buffer! */ - TRACEMSG(("End of transfer, entry (soc=%d, con=%d) being removed from list with %d status: %-.1900s", - tmpEntry->socket, tmpEntry->con_sock, tmpEntry->status, tmpEntry->URL_s->address)); + /* TRACEMSG does sprintf upto the length of the buffer, thus passing %s is ok */ + TRACEMSG(("End of transfer, entry (soc=%d, con=%d) being removed from list with %d status: %s", + tmpEntry->socket, tmpEntry->con_sock, tmpEntry->status, + (tmpEntry->URL_s->address ? tmpEntry->URL_s->address : "none"))); /* call exit routine since we know we are done */ net_CallExitRoutineProxy(tmpEntry->exit_routine,