netfile: fix -Wformat-truncation warnings

Origin commit data
------------------
Branch: ni/coolstream
Commit: fe38c17684
Author: Markus Volk <f_l_k@t-online.de>
Date: 2020-01-31 (Fri, 31 Jan 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Markus Volk
2020-01-31 22:20:04 +01:00
committed by vanhofen
parent 2772a342ae
commit 33ab1e3dc5
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];