diff options
Diffstat (limited to 'net-p2p/gtkhx/files/patch-src__files.c')
-rw-r--r-- | net-p2p/gtkhx/files/patch-src__files.c | 20 |
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; + } |