diff options
-rw-r--r-- | audio/lopster/Makefile | 2 | ||||
-rw-r--r-- | audio/lopster/files/patch-src::transfer.c | 15 | ||||
-rw-r--r-- | net-p2p/lopster/Makefile | 2 | ||||
-rw-r--r-- | net-p2p/lopster/files/patch-src::transfer.c | 15 |
4 files changed, 32 insertions, 2 deletions
diff --git a/audio/lopster/Makefile b/audio/lopster/Makefile index 37eb4a6d2c0b..5d718c553dc6 100644 --- a/audio/lopster/Makefile +++ b/audio/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/audio/lopster/files/patch-src::transfer.c b/audio/lopster/files/patch-src::transfer.c new file mode 100644 index 000000000000..ffc51a29a38f --- /dev/null +++ b/audio/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) { 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) { |