# HG changeset patch # User masneyb # Date 1153362778 0 # Node ID 26d6b4b533454b2279f3a06b378287e82a87db92 # Parent c1144630c4f4a14686b5f402dae5102410f1375f 2006-7-19 Brian Masney * lib/protocols.c (gftp_get_all_subdirs) - make sure that the memory is properly allocated for the directory. This fixes a crash when stopping a file transfer (from Rob Wilkens ) (closes #303779) diff -r c1144630c4f4 -r 26d6b4b53345 ChangeLog --- a/ChangeLog Thu Jul 20 02:24:50 2006 +0000 +++ b/ChangeLog Thu Jul 20 02:32:58 2006 +0000 @@ -1,4 +1,9 @@ 2006-7-19 Brian Masney + * lib/protocols.c (gftp_get_all_subdirs) - make sure that the memory is + properly allocated for the directory. This fixes a crash when stopping a + file transfer (from Rob Wilkens ) + (closes #303779) + * src/gtk/gtkui.c src/text/textui.c src/uicommon/gftpui.c src/uicommon/gftpui.h - change the cursor to a busy cursor when the protocol functions are used (from Scott Reeves ) @@ -3441,7 +3446,7 @@ * cvsclean - added this script - * *.[ch] - added $Id: ChangeLog,v 1.447 2006/07/20 02:24:48 masneyb Exp $ tags + * *.[ch] - added $Id: ChangeLog,v 1.448 2006/07/20 02:32:57 masneyb Exp $ tags * debian/* - updated files from Debian maintainer diff -r c1144630c4f4 -r 26d6b4b53345 lib/protocols.c --- a/lib/protocols.c Thu Jul 20 02:24:50 2006 +0000 +++ b/lib/protocols.c Thu Jul 20 02:32:58 2006 +0000 @@ -2066,12 +2066,12 @@ if (curfle->st_mode & S_IFDIR) { oldfromdir = transfer->fromreq->directory; - transfer->fromreq->directory = curfle->file; + transfer->fromreq->directory = g_strdup (curfle->file); if (transfer->toreq != NULL) { oldtodir = transfer->toreq->directory; - transfer->toreq->directory = curfle->destfile; + transfer->toreq->directory = g_strdup (curfle->destfile); } forcecd = 1;