diff --git a/src/driver/netfile.cpp b/src/driver/netfile.cpp index 6a937700d..b1782f373 100644 --- a/src/driver/netfile.cpp +++ b/src/driver/netfile.cpp @@ -180,7 +180,7 @@ magic_t known_magic[] = static int meta_interval; /*chunked mode */ static bool chunked; /*chunked mode */ -char err_txt[2048]; /* human readable error message */ +char err_txt[32818]; /* human readable error message */ char redirect_url[2048]; /* new url if we've been redirected (HTTP 301/302) */ static int debug = 0; /* print debugging output or not */ static char logfile[256]; /* redirect errors from stderr */ @@ -344,7 +344,7 @@ int ConnectToServer(char *hostname, int port) int request_file(URL *url) { - char str[256], *ptr; + char str[4119], *ptr; int slot; ID3 id3; memset(&id3, 0, sizeof(ID3)); diff --git a/src/driver/netfile.h b/src/driver/netfile.h index e5d157bff..101808593 100644 --- a/src/driver/netfile.h +++ b/src/driver/netfile.h @@ -85,7 +85,7 @@ extern int f_seek(FILE *, long, int); extern int f_status(FILE *, void (*)(void*)); extern const char *f_type(FILE*, const char*); -extern char err_txt[2048]; +extern char err_txt[32818]; #define CACHESIZE cache_size #define CACHEENTMAX 20 /* at most 20 caches are available */ @@ -95,7 +95,7 @@ typedef struct { int access_mode; /* access mode; FILE or HTTP */ int proto_version; /* 0= 1.0; 1 = 1.1; 2 = shoutcast */ - char url[2048]; /* universal resource locator */ + char url[2127]; /* universal resource locator */ char host[2048]; int port; char file[2048];