[Github-comments] [geany/geany-plugins] Markdown: Modify replace_all to avoid infinite loop (PR #1128)

xiota notifications at xxxxx
Fri Oct 29 10:05:39 UTC 2021


@xiota commented on this pull request.



> @@ -194,14 +194,15 @@ replace_all(MarkdownViewer *self,
 {
   gchar *ptr;
   gsize needle_len = strlen(needle);
+  gsize replacement_len_minus_one = strlen(replacement) - 1;

So I'd have something to change later?

-- 
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/1128#discussion_r739105049
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211029/75c98f7a/attachment.htm>


More information about the Github-comments mailing list