[Github-comments] [geany/geany-plugins] Workbench (#598)

LarsGit223 notifications at xxxxx
Sun Aug 20 17:46:28 UTC 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170820/da5c80c6/attachment.html>


More information about the Github-comments mailing list