1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-16 06:15:24 +00:00

Update: Fixed some compiler warnings

This commit is contained in:
Philipp Schafft 2022-02-25 23:27:24 +00:00
parent 66375b57e4
commit e6ab93d437
2 changed files with 4 additions and 4 deletions

View File

@ -280,7 +280,7 @@ static int _start_logging(void)
char fn_error[FILENAME_MAX];
char fn_access[FILENAME_MAX];
char fn_playlist[FILENAME_MAX];
char buf[1024];
char buf[FILENAME_MAX+1024];
int log_to_stderr;
ice_config_t *config = config_get_config_unlocked();
@ -532,7 +532,7 @@ static void _ch_root_uid_setup(void)
static inline void __log_system_name(void) {
char hostname[80] = "(unknown)";
char system[128] = "(unknown)";
char system[1024] = "(unknown)";
int have_hostname = 0;
#ifdef HAVE_UNAME
struct utsname utsname;

View File

@ -641,7 +641,7 @@ static inline void __format_time(char * buffer, size_t len, const char * format)
void stats_event_time (const char *mount, const char *name)
{
char buffer[100];
char buffer[256];
__format_time(buffer, sizeof(buffer), "%a, %d %b %Y %H:%M:%S ");
stats_event (mount, name, buffer);
@ -650,7 +650,7 @@ void stats_event_time (const char *mount, const char *name)
void stats_event_time_iso8601 (const char *mount, const char *name)
{
char buffer[100];
char buffer[256];
__format_time(buffer, sizeof(buffer), "%Y-%m-%dT%H:%M:%S");
stats_event (mount, name, buffer);