gtranslator r3823 - in trunk: . src



Author: psanxiao
Date: Sat Oct 18 14:04:00 2008
New Revision: 3823
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3823&view=rev

Log:
	* src/utils.c:
	(gtranslator_utils_reduce_path):
	Minor Fix: changed g_strconcat to g_build_filename.



Modified:
   trunk/ChangeLog
   trunk/src/utils.c

Modified: trunk/src/utils.c
==============================================================================
--- trunk/src/utils.c	(original)
+++ trunk/src/utils.c	Sat Oct 18 14:04:00 2008
@@ -937,12 +937,12 @@
   
   array = g_strsplit (path, "/", -1);
 
-  new_str = g_strconcat (array[1], "/../", array[g_strv_length (array)-1], NULL);
+  new_str = g_build_filename (array[1], "/../", array[g_strv_length (array)-1], NULL);
   
   if (strlen (new_str) >= 30)
     {
       g_free (new_str);
-      new_str = g_strconcat ("../", array[g_strv_length (array)-1], NULL);
+      new_str = g_build_filename ("../", array[g_strv_length (array)-1], NULL);
     }
   return new_str;
 }



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