gcut: use dynamic allocation instead of PATH_MAX fixing build on hurd

parent 58cd3162
......@@ -1006,8 +1006,8 @@ GeglEDL *gcut_new_from_path (const char *path)
}
else
{
parent = g_malloc0 (PATH_MAX);
getcwd (parent, PATH_MAX);
parent = g_malloc0 (strlen(path));
getcwd (parent, strlen(path));
}
edl = gcut_new_from_string ("", parent);
if (!edl->path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment