Mercurial > gftp.yaz
changeset 776:26d6b4b53345
2006-7-19 Brian Masney <masneyb@gftp.org>
* 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 <robwilkens@optonline.net>)
(closes #303779)
author | masneyb |
---|---|
date | Thu, 20 Jul 2006 02:32:58 +0000 |
parents | c1144630c4f4 |
children | f6a3f5677339 |
files | ChangeLog lib/protocols.c |
diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 <masneyb@gftp.org> + * 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 <robwilkens@optonline.net>) + (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 <sreeves@novell.com>) @@ -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
--- 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;