mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
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:
@@ -180,7 +180,7 @@ magic_t known_magic[] =
|
|||||||
|
|
||||||
static int meta_interval; /*chunked mode */
|
static int meta_interval; /*chunked mode */
|
||||||
static bool chunked; /*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) */
|
char redirect_url[2048]; /* new url if we've been redirected (HTTP 301/302) */
|
||||||
static int debug = 0; /* print debugging output or not */
|
static int debug = 0; /* print debugging output or not */
|
||||||
static char logfile[256]; /* redirect errors from stderr */
|
static char logfile[256]; /* redirect errors from stderr */
|
||||||
@@ -344,7 +344,7 @@ int ConnectToServer(char *hostname, int port)
|
|||||||
|
|
||||||
int request_file(URL *url)
|
int request_file(URL *url)
|
||||||
{
|
{
|
||||||
char str[256], *ptr;
|
char str[4119], *ptr;
|
||||||
int slot;
|
int slot;
|
||||||
ID3 id3;
|
ID3 id3;
|
||||||
memset(&id3, 0, sizeof(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 int f_status(FILE *, void (*)(void*));
|
||||||
extern const char *f_type(FILE*, const char*);
|
extern const char *f_type(FILE*, const char*);
|
||||||
|
|
||||||
extern char err_txt[2048];
|
extern char err_txt[32818];
|
||||||
|
|
||||||
#define CACHESIZE cache_size
|
#define CACHESIZE cache_size
|
||||||
#define CACHEENTMAX 20 /* at most 20 caches are available */
|
#define CACHEENTMAX 20 /* at most 20 caches are available */
|
||||||
@@ -95,7 +95,7 @@ typedef struct
|
|||||||
{
|
{
|
||||||
int access_mode; /* access mode; FILE or HTTP */
|
int access_mode; /* access mode; FILE or HTTP */
|
||||||
int proto_version; /* 0= 1.0; 1 = 1.1; 2 = shoutcast */
|
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];
|
char host[2048];
|
||||||
int port;
|
int port;
|
||||||
char file[2048];
|
char file[2048];
|
||||||
|
Reference in New Issue
Block a user