Allocate uris correctly as gchar*, not gchar
This commit is contained in:
parent
78805e5cd4
commit
8baee5780d
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue