mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-11-03 04:17:17 -05:00
Fix: Corrected warnings regarding buffer sizes for time stamps
This commit is contained in:
parent
a53317c7e4
commit
572e10a975
@ -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)
|
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 ");
|
__format_time(buffer, sizeof(buffer), "%a, %d %b %Y %H:%M:%S ");
|
||||||
stats_event (mount, name, buffer);
|
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)
|
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");
|
__format_time(buffer, sizeof(buffer), "%Y-%m-%dT%H:%M:%S");
|
||||||
stats_event (mount, name, buffer);
|
stats_event (mount, name, buffer);
|
||||||
|
Loading…
Reference in New Issue
Block a user