netfile: fix -Wformat-truncation warnings

This commit is contained in:
Markus Volk
2020-01-31 12:45:25 +01:00
parent abb024ee82
commit b0dee3c9f3
2 changed files with 4 additions and 4 deletions

View File

@@ -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));

View File

@@ -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];