mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
netfile: fix -Wformat-truncation warnings
This commit is contained in:
@@ -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));
|
||||
|
@@ -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];
|
||||
|
Reference in New Issue
Block a user