@elextr commented on this pull request.


> @@ -185,15 +191,30 @@ version_compare(const gchar *current_version)
 }
 
 
-static void update_check_result_cb(SoupSession *session,
-    SoupMessage *msg, gpointer user_data)
+static gchar *bytes_to_string(GBytes *bytes)
+{
+    gsize bytes_size = g_bytes_get_size(bytes);
+    gchar *str = g_malloc(bytes_size + 1);
+    memcpy(str, g_bytes_get_data(bytes, NULL), bytes_size);

Perhaps the response body might not be a nul terminated string, so its copied 
to one.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/1336#discussion_r1578813084
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany-plugins/pull/1336/review/[email protected]>

Reply via email to