LarsGit223 commented on this pull request.


> +             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 or view it on GitHub:
https://github.com/geany/geany-plugins/pull/598#discussion_r134121987

Reply via email to