[gegl] gegl-xml: do not rely on GNU extension to realpath
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl-xml: do not rely on GNU extension to realpath
- Date: Sun, 24 May 2015 20:27:09 +0000 (UTC)
commit 5d715eee845ef1ab30490259a114902d0b6533ed
Author: Øyvind Kolås <pippin gimp org>
Date: Sun May 24 10:25:29 2015 +0200
gegl-xml: do not rely on GNU extension to realpath
gegl/gegl-xml.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gegl/gegl-xml.c b/gegl/gegl-xml.c
index 96815cd..d93ea31 100644
--- a/gegl/gegl-xml.c
+++ b/gegl/gegl-xml.c
@@ -123,6 +123,7 @@ set_clone_prop_as_well:
else
{
gchar * absolute_path;
+ gchar temp_path[PATH_MAX];
if (pd->path_root)
{
buf = g_strdup_printf ("%s/%s", pd->path_root, param_value);
@@ -132,12 +133,11 @@ set_clone_prop_as_well:
buf = g_strdup_printf ("./%s", param_value);
}
- absolute_path = realpath (buf, NULL);
+ absolute_path = realpath (buf, temp_path);
g_free (buf);
if (absolute_path)
{
gegl_node_set (new, param_name, absolute_path, NULL);
- free (absolute_path);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]