diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2002-11-23 00:18:05 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2002-11-23 00:18:05 +0000 |
commit | b93d04f3ebc6dd3b465874629b257395c8cb4cf3 (patch) | |
tree | 1eedf4eff14fb34c72c9d2272f6f03a797021ba9 /net-p2p | |
parent | Maintainer update to use source-version instead of binary (diff) |
Maintainer bugfix 'resume "IO Error" bug'
PR: ports/45405
Submitted by: Roman Shterenzon <roman@xpert.com>
Notes
Notes:
svn path=/head/; revision=70788
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/lopster/Makefile | 2 | ||||
-rw-r--r-- | net-p2p/lopster/files/patch-src::transfer.c | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/net-p2p/lopster/Makefile b/net-p2p/lopster/Makefile index 37eb4a6d2c0b..5d718c553dc6 100644 --- a/net-p2p/lopster/Makefile +++ b/net-p2p/lopster/Makefile @@ -7,7 +7,7 @@ PORTNAME= lopster PORTVERSION= 1.0.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= audio MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/net-p2p/lopster/files/patch-src::transfer.c b/net-p2p/lopster/files/patch-src::transfer.c new file mode 100644 index 000000000000..ffc51a29a38f --- /dev/null +++ b/net-p2p/lopster/files/patch-src::transfer.c @@ -0,0 +1,15 @@ +--- src/transfer.c.orig Sun Nov 4 20:30:19 2001 ++++ src/transfer.c Mon Nov 18 11:09:25 2002 +@@ -1827,8 +1827,10 @@ + printf("set offset to %ld %d\n", transfer->progress, cnt); + #endif + transfer->resume_check = l_malloc(cnt * sizeof(char)); +- transfer->check_length = read(fileno(transfer->file), +- transfer->resume_check, cnt); ++ transfer->check_length = fread(transfer->resume_check, ++ sizeof(char), ++ cnt, ++ transfer->file); + fclose(transfer->file); + + if (transfer->check_length != cnt) { |