From 1e282bc63c7a5fb1f3679e9e1b10251c13a8cab0 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Thu, 10 Jan 2008 23:19:30 +0000 Subject: - Update to 0.9.4 PR: 119503 Submitted by: KATO Tsuguru --- net-p2p/gtkhx/files/patch-src__files.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 net-p2p/gtkhx/files/patch-src__files.c (limited to 'net-p2p/gtkhx/files/patch-src__files.c') 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; + } -- cgit v1.2.3