aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl.c
diff options
context:
space:
mode:
authorGravatar dusanx <ef_dva@yahoo.com>2009-04-28 08:57:36 +0200
committerGravatar dusanx <ef_dva@yahoo.com>2009-04-28 08:57:36 +0200
commit5586e11f8ac6265472b92dbb9a99ff0b7052d1e2 (patch)
treefcc19a47c4b2391bf645bff72b53688d363b7e3d /uzbl.c
parent5879bdab1d267e0de73982f844a63bf9c67e84b8 (diff)
Segfault fix
Diffstat (limited to 'uzbl.c')
-rw-r--r--uzbl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/uzbl.c b/uzbl.c
index 0bbcf73..8eefe84 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -206,7 +206,9 @@ static void
load_commit_cb (WebKitWebView* page, WebKitWebFrame* frame, gpointer data) {
(void) page;
(void) data;
- strcpy (uri, webkit_web_frame_get_uri (frame));
+ free (uri);
+ GString* newuri = g_string_new (webkit_web_frame_get_uri (frame));
+ uri = g_string_free (newuri, FALSE);
}
static void