# HG changeset patch # User masneyb # Date 1162517761 0 # Node ID 94f87e3c92b2e38bac91333601bb95628e813352 # Parent dd83cd01dc309c3906095c42cc11fd7f1bd60a9c 2006-11-2 Brian Masney * lib/local.c (local_chdir) - fixed double free of the utf8 variable. This only occured in the CVS version. * src/uicommon/gftpui.c (gftpui_common_process_command) - fixes for detecting empty lines diff -r dd83cd01dc30 -r 94f87e3c92b2 ChangeLog --- a/ChangeLog Wed Nov 01 03:15:49 2006 +0000 +++ b/ChangeLog Fri Nov 03 01:36:01 2006 +0000 @@ -1,7 +1,11 @@ +2006-11-2 Brian Masney + * lib/local.c (local_chdir) - fixed double free of the utf8 variable. + This only occured in the CVS version. + + * src/uicommon/gftpui.c (gftpui_common_process_command) - fixes for + detecting empty lines + 2006-10-31 Brian Masney - WARNING: The CVS version of gFTP is currently broken, especially for - international users. This will be fixed in a few days. - * lib/sshv2.c - added i18n support so that the files are encoded properly @@ -3669,7 +3673,7 @@ * cvsclean - added this script - * *.[ch] - added $Id: ChangeLog,v 1.490 2006/11/01 03:15:48 masneyb Exp $ tags + * *.[ch] - added $Id: ChangeLog,v 1.491 2006/11/03 01:36:00 masneyb Exp $ tags * debian/* - updated files from Debian maintainer diff -r dd83cd01dc30 -r 94f87e3c92b2 lib/local.c --- a/lib/local.c Wed Nov 01 03:15:49 2006 +0000 +++ b/lib/local.c Fri Nov 03 01:36:01 2006 +0000 @@ -114,9 +114,6 @@ ret = GFTP_ERETRYABLE; } - if (utf8 != NULL) - g_free (utf8); - return (ret); } diff -r dd83cd01dc30 -r 94f87e3c92b2 src/uicommon/gftpui.c --- a/src/uicommon/gftpui.c Wed Nov 01 03:15:49 2006 +0000 +++ b/src/uicommon/gftpui.c Fri Nov 03 01:36:01 2006 +0000 @@ -1056,11 +1056,10 @@ newstr[--len] = '\0'; for (pos = newstr + len - 1; - (*pos == ' ' || *pos == '\t') && pos > newstr; - pos--) - *pos = '\0'; + (*pos == ' ' || *pos == '\t') && pos > newstr; + *pos-- = '\0'); - if (*stpos == '\0') + if (*newstr == '\0') { g_free (newstr); return (1);