From 8baee5780d05b99f079bb5c763a0697bab0a39e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Enrico=20Tr=C3=B6ger?= Date: Fri, 10 Jul 2009 16:20:56 +0100 Subject: [PATCH] Allocate uris correctly as gchar*, not gchar --- midori/midori-app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/midori/midori-app.c b/midori/midori-app.c index a63390cc..e71f4b08 100644 --- a/midori/midori-app.c +++ b/midori/midori-app.c @@ -551,7 +551,7 @@ midori_app_io_channel_watch_cb (GIOChannel* channel, else if (strncmp (buf, "command", 7) == 0) { guint i = 0; - gchar** uris = g_new (gchar, 100); + gchar** uris = g_new (gchar*, 100); while (fd_gets (sock, buf, sizeof (buf)) != -1 && *buf != '.') { uris[i++] = g_strdup (g_strstrip (buf)); -- 2.39.5