summaryrefslogtreecommitdiff
path: root/www/libgtkhtml/files
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-06-01 00:09:09 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-06-01 00:09:09 +0000
commit7e560606d52c99330557163ef213c845b923b70e (patch)
tree5c9e1fdc6bfb17abc76a2f9eca154dd2dc93b696 /www/libgtkhtml/files
parentUpdate to 0.80. (diff)
Fix a 64-bit bigendian problem that kept HTML pages from rending correctly
on Sparc64. Reported by: kris
Notes
Notes: svn path=/head/; revision=81786
Diffstat (limited to 'www/libgtkhtml/files')
-rw-r--r--www/libgtkhtml/files/patch-libgtkhtml_util_htmlatomlist.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/www/libgtkhtml/files/patch-libgtkhtml_util_htmlatomlist.c b/www/libgtkhtml/files/patch-libgtkhtml_util_htmlatomlist.c
new file mode 100644
index 000000000000..5eec5f729744
--- /dev/null
+++ b/www/libgtkhtml/files/patch-libgtkhtml_util_htmlatomlist.c
@@ -0,0 +1,25 @@
+--- libgtkhtml/util/htmlatomlist.c.orig Mon May 26 14:13:28 2003
++++ libgtkhtml/util/htmlatomlist.c Mon May 26 15:29:00 2003
+@@ -68,10 +68,11 @@
+ HtmlAtom atom;
+ gchar *ptr;
+ gboolean found;
++ gpointer old_atom;
+
+ ptr = g_strdown (g_strdup (str));
+
+- found = g_hash_table_lookup_extended (al->table, ptr, NULL, (gpointer) &atom);
++ found = g_hash_table_lookup_extended (al->table, ptr, NULL, &old_atom);
+
+ if (!found) {
+ if (al->len % 512 == 0)
+@@ -81,6 +82,9 @@
+ atom = al->len;
+ g_hash_table_insert (al->table, al->data[al->len], GUINT_TO_POINTER (atom));
+ al->len++;
++ }
++ else {
++ atom = GPOINTER_TO_UINT (old_atom);
+ }
+
+ g_free (ptr);