diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2017-02-01 12:28:09 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2017-02-01 12:28:09 +0000 |
commit | bad1acc8310f52dbb501b77187f25c62405dfe96 (patch) | |
tree | 7baa5bc9ce0b9aab8c8dc935bd0ca58359733505 /audio | |
parent | 826aa9746cee57c97de9300b657003ffee3e73ed (diff) | |
download | ports-bad1acc8310f52dbb501b77187f25c62405dfe96.tar.gz ports-bad1acc8310f52dbb501b77187f25c62405dfe96.zip |
Notes
Diffstat (limited to 'audio')
-rw-r--r-- | audio/muse/Makefile | 2 | ||||
-rw-r--r-- | audio/muse/files/patch-src_httpstream.cpp | 22 |
2 files changed, 23 insertions, 1 deletions
diff --git a/audio/muse/Makefile b/audio/muse/Makefile index 3dda94ebc5ce..f2523e2e18e7 100644 --- a/audio/muse/Makefile +++ b/audio/muse/Makefile @@ -3,7 +3,7 @@ PORTNAME= MuSE PORTVERSION= 0.9.2 -PORTREVISION= 15 +PORTREVISION= 16 CATEGORIES= audio MASTER_SITES= https://files.dyne.org/muse/sources/ diff --git a/audio/muse/files/patch-src_httpstream.cpp b/audio/muse/files/patch-src_httpstream.cpp new file mode 100644 index 000000000000..216e106d0b41 --- /dev/null +++ b/audio/muse/files/patch-src_httpstream.cpp @@ -0,0 +1,22 @@ +--- src/httpstream.cpp.orig 2005-12-27 14:26:06 UTC ++++ src/httpstream.cpp +@@ -356,6 +356,7 @@ http_open( const char *url ) + { + int sock = INVALID_SOCKET; + FILE *fd = NULL; ++ const char *hp = NULL; + char *host=NULL, *file=NULL, *p; + int port = 0; + +@@ -363,9 +364,8 @@ http_open( const char *url ) + file = (char*)calloc( 1, strlen(url)+1 ); + if (!host || !file) goto out; + +- p = strstr(url, HTTP_PREFIX); if (!p) goto out; +- p += 7; +- strcpy(host, p); ++ hp = strstr(url, HTTP_PREFIX); if (!hp) goto out; ++ strcpy(host, hp + 7); + + p = strchr(host, '/'); + if (p) { |