changeset 841:94f87e3c92b2

2006-11-2 Brian Masney <masneyb@gftp.org> * 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
author masneyb
date Fri, 03 Nov 2006 01:36:01 +0000
parents dd83cd01dc30
children 0d6fba16c7db
files ChangeLog lib/local.c src/uicommon/gftpui.c
diffstat 3 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- 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 <masneyb@gftp.org>
+	* 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 <masneyb@gftp.org>
-	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
 
--- 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);
 }
 
--- 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);