summaryrefslogtreecommitdiff
path: root/net-p2p/gtkhx/files/patch-src__files.c
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-01-10 23:19:30 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-01-10 23:19:30 +0000
commit1e282bc63c7a5fb1f3679e9e1b10251c13a8cab0 (patch)
treeb594a0476ca0df1f4e355c25647d7b491ba8705e /net-p2p/gtkhx/files/patch-src__files.c
parent- Update to 20080109 (diff)
- Update to 0.9.4
PR: 119503 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'net-p2p/gtkhx/files/patch-src__files.c')
-rw-r--r--net-p2p/gtkhx/files/patch-src__files.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/net-p2p/gtkhx/files/patch-src__files.c b/net-p2p/gtkhx/files/patch-src__files.c
new file mode 100644
index 000000000000..d7150d1539a2
--- /dev/null
+++ b/net-p2p/gtkhx/files/patch-src__files.c
@@ -0,0 +1,20 @@
+--- src/files.c.orig Tue Apr 8 05:05:31 2003
++++ src/files.c Sun Jan 6 01:52:06 2008
+@@ -1000,7 +1000,7 @@
+ gtk_hlist_clear(GTK_HLIST(files_list));
+
+ for (fh = cfl->fh; (guint32)((char *)fh - (char *)cfl->fh) < cfl->fhlen;
+- (char *)fh += fh->len + SIZEOF_HL_DATA_HDR) {
++ fh = (char *)fh + fh->len + SIZEOF_HL_DATA_HDR) {
+ fh->fnlen = ntohl(fh->fnlen);
+ fh->len = ntohs(fh->len);
+ fh->fsize = ntohl(fh->fsize);
+@@ -1304,7 +1304,7 @@
+ return 0;
+
+ for (fh = cfl->fh; (guint32)((char *)fh - (char *)cfl->fh) < cfl->fhlen;
+- (char *)fh += fh->len + SIZEOF_HL_DATA_HDR) {
++ fh = (char *)fh + fh->len + SIZEOF_HL_DATA_HDR) {
+ if ((int)fh->fnlen == len && !strncmp(fh->fname, ent, len))
+ return 1;
+ }