From: Enrico Tröger Date: Fri, 10 Jul 2009 15:20:56 +0000 (+0100) Subject: Allocate uris correctly as gchar*, not gchar X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8baee5780d05b99f079bb5c763a0697bab0a39e9;p=midori Allocate uris correctly as gchar*, not gchar --- 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));