+++ /dev/null
-diff -ur djmount-0.71-orig/djmount/file_buffer.c djmount-0.71/djmount/file_buffer.c
---- djmount-0.71-orig/djmount/file_buffer.c 2006-08-27 22:12:20.000000000 +0200
-+++ djmount-0.71/djmount/file_buffer.c 2012-12-01 18:40:29.892922733 +0100
-@@ -199,7 +199,7 @@
- int rc = UpnpOpenHttpGetEx (file->url, &handle,
- &contentType, &contentLength,
- &httpStatus,
-- offset, offset + size,
-+ offset, offset + size - 1,
- HTTP_DEFAULT_TIMEOUT
- );
- if (rc != UPNP_E_SUCCESS)
-diff -ur djmount-0.71-orig/djmount/file_buffer.h djmount-0.71/djmount/file_buffer.h
---- djmount-0.71-orig/djmount/file_buffer.h 2006-08-27 22:12:20.000000000 +0200
-+++ djmount-0.71/djmount/file_buffer.h 2012-12-01 18:41:50.552927328 +0100
-@@ -60,7 +60,7 @@
- *
- *****************************************************************************/
-
--#define FILE_BUFFER_MAX_CONTENT_LENGTH ((uintmax_t) INT_MAX)
-+#define FILE_BUFFER_MAX_CONTENT_LENGTH ((uintmax_t) ~0ULL)
-
-
- /*****************************************************************************
-diff -ur djmount-0.71-orig/djmount/media_file.c djmount-0.71/djmount/media_file.c
---- djmount-0.71-orig/djmount/media_file.c 2006-08-27 22:12:20.000000000 +0200
-+++ djmount-0.71/djmount/media_file.c 2012-12-01 18:43:37.382921337 +0100
-@@ -282,7 +282,7 @@
- {
- const char* const str = ixmlElement_getAttribute (file->res, "size");
- off_t res;
-- STRING_TO_INT (str, res, -1);
-+ STRING_TO_INT (str, res, 8ULL << 30);
- return res;
- }
-
-diff -ur djmount-0.71-orig/libupnp/upnp/inc/upnp.h djmount-0.71/libupnp/upnp/inc/upnp.h
---- djmount-0.71-orig/libupnp/upnp/inc/upnp.h 2006-08-27 22:12:30.000000000 +0200
-+++ djmount-0.71/libupnp/upnp/inc/upnp.h 2012-12-01 18:44:21.112924671 +0100
-@@ -2262,9 +2262,9 @@
- IN OUT int *httpStatus, /** The status returned on receiving a
- response message from the remote
- server. */
-- IN int lowRange, /** An integer value representing the low
-+ IN unsigned long long lowRange, /** An integer value representing the low
- end of a range to retrieve. */
-- IN int highRange, /** An integer value representing the high
-+ IN unsigned long long highRange, /** An integer value representing the high
- end of a range to retrieve. */
- IN int timeout /** A time out value sent with the request
- during which a response is expected
-diff -ur djmount-0.71-orig/libupnp/upnp/src/api/upnpapi.c djmount-0.71/libupnp/upnp/src/api/upnpapi.c
---- djmount-0.71-orig/libupnp/upnp/src/api/upnpapi.c 2006-08-27 22:12:26.000000000 +0200
-+++ djmount-0.71/libupnp/upnp/src/api/upnpapi.c 2012-12-01 18:45:03.452924224 +0100
-@@ -3117,8 +3117,8 @@
- IN OUT char **contentType,
- OUT int *contentLength,
- OUT int *httpStatus,
-- IN int lowRange,
-- IN int highRange,
-+ IN unsigned long long lowRange,
-+ IN unsigned long long highRange,
- IN int timeout )
- {
- return http_OpenHttpGetEx( url_str,
-diff -ur djmount-0.71-orig/libupnp/upnp/src/genlib/net/http/httpreadwrite.c djmount-0.71/libupnp/upnp/src/genlib/net/http/httpreadwrite.c
---- djmount-0.71-orig/libupnp/upnp/src/genlib/net/http/httpreadwrite.c 2006-08-27 22:12:24.000000000 +0200
-+++ djmount-0.71/libupnp/upnp/src/genlib/net/http/httpreadwrite.c 2012-12-01 18:45:56.082928622 +0100
-@@ -2072,8 +2072,8 @@
- IN OUT char **contentType,
- OUT int *contentLength,
- OUT int *httpStatus,
-- IN int lowRange,
-- IN int highRange,
-+ IN unsigned long long lowRange,
-+ IN unsigned long long highRange,
- IN int timeout )
- {
- int http_error_code;
-@@ -2107,7 +2107,7 @@
- }
-
- memset( &rangeBuf, 0, sizeof( rangeBuf ) );
-- sprintf( rangeBuf.RangeHeader, "Range: bytes=%d-%d\r\n",
-+ sprintf( rangeBuf.RangeHeader, "Range: bytes=%llu-%llu\r\n",
- lowRange, highRange );
-
- membuffer_init( &request );
-diff -ur djmount-0.71-orig/libupnp/upnp/src/inc/httpreadwrite.h djmount-0.71/libupnp/upnp/src/inc/httpreadwrite.h
---- djmount-0.71-orig/libupnp/upnp/src/inc/httpreadwrite.h 2006-08-27 22:12:28.000000000 +0200
-+++ djmount-0.71/libupnp/upnp/src/inc/httpreadwrite.h 2012-12-01 18:46:22.362922742 +0100
-@@ -494,8 +494,8 @@
- IN OUT char **contentType,
- OUT int *contentLength,
- OUT int *httpStatus,
-- IN int lowRange,
-- IN int highRange,
-+ IN unsigned long long lowRange,
-+ IN unsigned long long highRange,
- IN int timeout);
-
- /************************************************************************
\ No newline at end of file