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

Fix: Corrected warnings regarding buffer sizes for time stamps

This commit is contained in:
Philipp Schafft 2023-06-22 13:15:33 +00:00
parent a53317c7e4
commit 572e10a975

View File

@ -636,7 +636,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[192];
__format_time(buffer, sizeof(buffer), "%a, %d %b %Y %H:%M:%S ");
stats_event (mount, name, buffer);
@ -645,7 +645,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[192];
__format_time(buffer, sizeof(buffer), "%Y-%m-%dT%H:%M:%S");
stats_event (mount, name, buffer);