]> spindle.queued.net Git - midori/commitdiff
Allocate uris correctly as gchar*, not gchar
authorEnrico Tröger <enrico.troeger@uvena.de>
Fri, 10 Jul 2009 15:20:56 +0000 (16:20 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 10 Jul 2009 15:20:56 +0000 (16:20 +0100)
midori/midori-app.c

index a63390ccb37b2f08d4ffed98e6bc42f8e0a1eece..e71f4b08696fe264d316d7be6b03bc1313bb50c1 100644 (file)
@@ -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));