Hiroyuki Ikezoe
ikezo****@users*****
Wed Apr 26 10:18:41 JST 2006
Index: kazehakase/src/mozilla/kz-mozwrapper.cpp diff -u kazehakase/src/mozilla/kz-mozwrapper.cpp:1.115 kazehakase/src/mozilla/kz-mozwrapper.cpp:1.116 --- kazehakase/src/mozilla/kz-mozwrapper.cpp:1.115 Tue Apr 25 15:42:27 2006 +++ kazehakase/src/mozilla/kz-mozwrapper.cpp Wed Apr 26 10:18:41 2006 @@ -1590,14 +1590,16 @@ if (!value) continue; - char *uri; - uri = g_strdup_printf ("%s#%s", docURL.get(), value); + nsEmbedCString cValue, cURI; + cValue.Assign("#"); + cValue.Append(value, strlen(value)); + + ResolveURI(domDoc, cValue, cURI); g_free(value); KzBookmark *link; - link = kz_bookmark_new_with_attrs(NULL, uri, NULL); + link = kz_bookmark_new_with_attrs(NULL, cURI.get(), NULL); *list = g_list_append(*list, link); - g_free(uri); flag = TRUE; }