gegl r2296 - in trunk: . bin



Author: ok
Date: Sat May 17 12:17:24 2008
New Revision: 2296
URL: http://svn.gnome.org/viewvc/gegl?rev=2296&view=rev

Log:
* bin/gegl.c: (main): fix unportable use of realpath (bug #525050)
spotted by dmacks netspace org 


Modified:
   trunk/ChangeLog
   trunk/bin/gegl.c

Modified: trunk/bin/gegl.c
==============================================================================
--- trunk/bin/gegl.c	(original)
+++ trunk/bin/gegl.c	Sat May 17 12:17:24 2008
@@ -100,9 +100,10 @@
         }
       else
         {
+          gchar real_path[PATH_MAX];
           gchar *temp1 = g_strdup (o->file);
           gchar *temp2 = g_path_get_dirname (temp1);
-          path_root = g_strdup (realpath (temp2, NULL));
+          path_root = g_strdup (realpath (temp2, real_path));
           g_free (temp1);
           g_free (temp2);
         }



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