gvfs r1489 - in trunk: . daemon



Author: otte
Date: Sun Mar  2 22:51:34 2008
New Revision: 1489
URL: http://svn.gnome.org/viewvc/gvfs?rev=1489&view=rev

Log:
2008-03-02  Benjamin Otte  <otte gnome org>

	* daemon/gvfsbackendftp.c: (ftp_filename_construct):
	use g_build_path() to not get excess slashes in paths



Modified:
   trunk/ChangeLog
   trunk/daemon/gvfsbackendftp.c

Modified: trunk/daemon/gvfsbackendftp.c
==============================================================================
--- trunk/daemon/gvfsbackendftp.c	(original)
+++ trunk/daemon/gvfsbackendftp.c	Sun Mar  2 22:51:34 2008
@@ -724,7 +724,7 @@
   if (strpbrk (basename, "/\r\n"))
     return NULL;
 
-  return (FtpFile *) g_strconcat ((char *) dirname, "/", basename, NULL);
+  return (FtpFile *) g_build_path ("/", (char *) dirname, basename, NULL);
 }
 
 /*** COMMON FUNCTIONS WITH SPECIAL HANDLING ***/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]