changeset 632:4ab29ec829bf

2004-12-2 Brian Masney <masneyb@gftp.org> * lib/sshv2.c (sshv2_rename) - fixed segfault that could occur (from Aurelien Jarno <aurelien@aurel32.net >) (closes #159963)
author masneyb
date Thu, 02 Dec 2004 22:43:32 +0000
parents 056c54ac52a0
children 05c67a33b071
files ChangeLog lib/sshv2.c
diffstat 2 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Dec 02 22:33:05 2004 +0000
+++ b/ChangeLog	Thu Dec 02 22:43:32 2004 +0000
@@ -1,14 +1,17 @@
 2004-12-2 Brian Masney <masneyb@gftp.org>
+	* lib/sshv2.c (sshv2_rename) - fixed segfault that could occur (from
+        Aurelien Jarno <aurelien@aurel32.net >) (closes #159963)
+
 	* src/gtk/gtkui_transfer.c (gftpui_ask_transfer) - fixes for the first
 	character of the filename being stripped off when it already existed on
 	the remote side and it was being uploaded to the root directory. Note,
 	the file truncation only occured in it being displayed to the user. It
 	was not stripping the filename when it was being transfered (from
-	Aurelien Jarno <aurelien@aurel32.net >) (fixes #158713)
+	Aurelien Jarno <aurelien@aurel32.net >) (closes #158713)
 
 2004-11-18  Dennis Cranston <dennis_cranston@yahoo.com>
 	* src/gtk/options_dialog.c:  GNOME HIG fixes for the GTK+2 
-	version of the Options and Add/Edit dialogs. (fixes #158642)
+	version of the Options and Add/Edit dialogs. (closes #158642)
 	
 	Changes for the Options dialog:
 	   *  Use proper GNOME HIG widget spacing and padding
@@ -3118,7 +3121,7 @@
 
 	* cvsclean - added this script
 
-	* *.[ch] - added $Id: ChangeLog,v 1.373 2004/12/02 22:33:04 masneyb Exp $ tags
+	* *.[ch] - added $Id: ChangeLog,v 1.374 2004/12/02 22:43:32 masneyb Exp $ tags
 
 	* debian/* - updated files from Debian maintainer
 
--- a/lib/sshv2.c	Thu Dec 02 22:33:05 2004 +0000
+++ b/lib/sshv2.c	Thu Dec 02 22:43:32 2004 +0000
@@ -1598,7 +1598,7 @@
     newstr = gftp_build_path (request, request->directory, newname, NULL);
 
   oldlen = strlen (oldstr); 
-  newlen = strlen (newname); 
+  newlen = strlen (newstr); 
 
   len = oldlen + newlen + 12;
   tempstr = sshv2_initialize_string (request, len);