diff src/gtk/transfer.c @ 36:bc9473ba9a90

2002-10-07 Brian Masney <masneyb@gftp.org> * lib/local.c - fixed file uploads * lib/rfc959.c - fixed crash if you uploaded/downloaded a file that you didn't have permission to * src/gtk/transfer.c - display fixes for hostname * autogen.sh - pass -c to automake
author masneyb
date Tue, 08 Oct 2002 02:19:46 +0000
parents c8ec7877432e
children 5a178bd04ca5
line wrap: on
line diff
--- a/src/gtk/transfer.c	Mon Oct 07 18:17:08 2002 +0000
+++ b/src/gtk/transfer.c	Tue Oct 08 02:19:46 2002 +0000
@@ -2078,7 +2078,8 @@
           tdata->fromreq->logging_function (gftp_logging_error, 
                    tdata->fromreq->user_data,
                    _("Error: Remote site %s disconnected. Max retries reached...giving up\n"),
-                   GFTP_GET_HOSTNAME (tdata->fromreq));
+                   tdata->fromreq->hostname != NULL ? 
+                         tdata->fromreq->hostname : tdata->toreq->hostname);
           return (-1);
         }
       else
@@ -2086,7 +2087,9 @@
           tdata->fromreq->logging_function (gftp_logging_error, 
                      tdata->fromreq->user_data,
                      _("Error: Remote site %s disconnected. Will reconnect in %d seconds\n"),
-                     GFTP_GET_HOSTNAME (tdata->fromreq), tdata->fromreq->sleep_time);
+                     tdata->fromreq->hostname != NULL ? 
+                           tdata->fromreq->hostname : tdata->toreq->hostname, 
+                     tdata->fromreq->sleep_time);
         }
 
       while (tdata->fromreq->retries == 0 ||