@LarsGit223 commented on this pull request.


In workbench/src/utils.c:

> +		return NULL;
+	}
+	g_snprintf(result, length+1, "%s%s", basedir, start);
+
+	return result;
+}
+
+
+/** Get the relative path.
+ *
+ * The function examines the relative path of @a target in relation to
+ * @a base. It is not required that target is a sub-directory of base.
+ *
+ * The function can only properly handle pathes which consist of a maximum of
+ * 29 sub-directories. If the pathes exceed this maximum the function aborts
+ * and NULL is returned.

Re-factored the function, now uses GPtrArray. Also fixed the memory leaks.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.